struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Affonso <glis...@greywether.com>
Subject Re: How to redirect error message
Date Sun, 09 Dec 2007 23:58:47 GMT
Yayo wrote:
> Errors are stored in a request scope attribute and after a redirect they're
> lost because a new request is launched by the client browser. You must
> explicitly (by code) store them in a session attribute to get them in the
> second request.

Preserving the messages by hand will work, of course.  But there's a 
nifty interceptor (MessageStoreInteceptor) that will do that for you now...

http://struts.apache.org/2.0.11/docs/message-store-interceptor.html

- Gary

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


Mime
View raw message