In the Action there are two convenience methods:

         saveErrors(request, ActionMessages)
         saveMessages(request, ActionMessages)

You cn use the saveMessages() method to store under the messages key.

Niall

----- Original Message ----- 
From: "David Johnson" <[EMAIL PROTECTED]>
Sent: Friday, May 27, 2005 5:13 AM

> This opens up the possibility of having errors and messages both stored
> using saveerrors( request, ActionMessages) but what I'm wondering what
> method you'd recommend for separating them?
>
>  I'm using this to display my errors in my jsp:
>     <html-el:messages id="msg" message="false">
>            <c:out value="${msg}"/>
>      </html-el:messages>
>
> but it wouls seem to make more sense to have perhaps two areas in my JSP,
> one reserved for "errors" and one for "messages", like this:
>
>    <html-el:messages id="msg" message="false">
>       <c:out value="${msg}"/>
>    </html-el:messages>
>
>    <html-el:messages id="errors" message="false">
>       <c:out value="${errors}"/>
>    </html-el:messages>
>
>  it would seem that "saveErrors()" saves everything unser the "msg" key by
> default.
>
> Is there any way do override that behavior to store it under a key that
> makes more sense (i.e. I'm saving "errors" under the key=msg which seems
> sketchy)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to