You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wes Kubo <wk...@galdosinc.com> on 2004/11/30 22:14:58 UTC

Getting ActionMessages from session

Hi.

I noticed that Struts 1.2.x has a new method saveMessages(HttpSession
session, ActionMessages messages) that allows the ActionMessages to be
stored in the session instead of the request. This is very helpful for
displaying messages after a redirect. However, it doesn't seem like
html:messages will display messages in the session (after my cursory
test). The javadoc does mention that the messages are stored for use in
html:messages.

So all I'm doing right now is getting the message from the session in my
action and then putting them in the request for subsequent display and
then removing them for the session. I was hoping for cleaner
integrattion. Are the tags supposed to display ActionMessages in the
session (preferably removing them afterwards)? Alternatively, what
approach should I take here?

Thanks.

Wes


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