[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    html:messages not displaying all messages
From:       Jeff Beal <jbbeal () gmail ! com>
Date:       2005-07-29 21:09:30
Message-ID: d0ff0b570507291409593ba9fb () mail ! gmail ! com
[Download RAW message or body]

I have the following in an action class:

          msgs.add(ActionMessages.GLOBAL_MESSAGE,
                   new ActionMessage("This is an Action-inserted error",false));
          msgs.add(ActionMessages.GLOBAL_MESSAGE,
                   new ActionMessage("So is this",false));
          addErrors(request,msgs);

(Notice that I'm trying out the resource-free ActionMessage from 1.2.7)

Using <html:messages/> as follows, I only get the first message:
<html:messages id="someMessage"><c:out value="${someMessage}"/>
</html:messages>

If I just use <html:errors/>, I get both messages.  Am I missing
something with <html:messages/>?

-- Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic