I believe errors are not automatically "flashed" (messages are), so 
you'll need to do it manualy...flash(this),
see bottom of this page:

http://www.stripesframework.org/display/stripes/State+Management#StateManagement-RedirectafterPost

hth,
-m


Andreas Guther wrote:
>
> Hi,
>
> I am not able to get validation errors coming from one action class 
> being displayed in a second action class redirected to.
>
> This is the scenario:
>
> Jsp1 controlled by Action1 sends a form request to Action2. Action2 
> catches an exception that basically means the user cannot continue 
> with Action2 functionality. Instead of showing an error, Action2 in 
> its try/catch part populates adds the error as an global validation 
> error and then invokes the RedirectResolution(“/action1.action”). Goal 
> is to show the error rather in the originating page than in the target 
> page, where the error occurred.
>
> I expected that jsp1 now could display in <stripes:errors /> the 
> validation error coming from Action2. Unfortunately no error at all is 
> displayed.
>
> The only solution suggestion to this problem I could find was to call 
> RedirectResolution(“/action1.action”).flush(this). But this does not 
> provide the anticipated remedy.
>
> Is there a solution for the problem or is this something that cannot 
> be achieved in Stripes 1.4?
>
> Thanks in advance for any hint or suggestion.
>
> Andreas
>
> *Andreas Guther*
> Sr. Software Engineer*
>
> MarketTools, Inc.* | www.markettools.com <http://www.markettools.com/>
> 150 Spear Street | Suite 600 | San Francisco, CA 94105.
>
> This email and attachment(s) may contain confidential and/or 
> proprietary information and is intended only for the intended 
> addressee(s) or its authorized agent(s). Any disclosure, printing, 
> copying or use of such information is strictly prohibited. If this 
> email and/or attachment(s) were received in error, please immediately 
> notify the sender and delete all copies.
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> ------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to