You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by pdegregorio <pd...@pgmsystems.com> on 2013/03/28 17:05:34 UTC
Re: Showing messages after a redirect
Adam Hardy (struts) wrote
> Dimitris Mouchritsas on 01/07/08 16:50, wrote:
>
> actually you can put the messages collection into the session if you're ok
> to
> manage it yourself.
>
> session.setAttribute(Globals.MESSAGE_KEY, messages);
>
> and then in the next action redirected to:
>
> ActionMessages messages = new ActionMessages((ActionMessages)
> request.getAttribute(Globals.MESSAGE_KEY));
> messages.add((ActionMessages)
> session.getAttribute(Globals.MESSAGE_KEY));
Thank you. This worked for me when I added the following line to the 2nd
block of code (the next action redirected to)
saveMessages(request, messages);
--
View this message in context: http://struts.1045723.n5.nabble.com/Showing-messages-after-a-redirect-tp3481980p5712345.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org