Here's the situation...

I have a submit method in an ActionBean... let's call it MyActionBean.class. 
If there's an error, I add an error to the Global Errors list, like so:
getContext().getValidationErrors().addGlobalError(new SimpleError("YOU
SCREWED UP!"));
When I return the redirect, I make sure to flash the current ActionBean's
state:
return new RedirectResolution(MyActionBean.class, "view").flash(this);
This used to work like you would expect.  Now, the errors are lost--my guess
is that the bean that's passed along is subsequently overwritten on
redirect, throwing away all the saved data.

This used to work fine in 1.4.3, but in the 1.5 branch I have yet to get it
to work.

Additionally:
Please do not tell me to redirect to the JSP.  My JSPs are under WEB-INF,
where they should be.  Thus, redirecting to the JSP exposes the directory in
the URL.
Please to not tell me to use a ForwardResolution.  A ForwardResolution will
bypass data binding logic that occurs in the action.

-- 
View this message in context: 
http://www.nabble.com/Validation-errors-lost-on-Redirect-Resolution-to-ActionBean-tp18634092p18634092.html
Sent from the stripes-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to