You are creating the hacked up StripesRequestWrapper, but you're never
using it. Also, we changed how localizable messages are looked up and
that would cause an NPE with the code you have. I've done a little more
hacking on it, and the following code will work if you make the wrapper
final.
// redirect back to referer
return new RedirectResolution(path) {
@Override
public void execute(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
ExecutionContext exec = new ExecutionContext();
exec.setActionBean(actionBean);
exec.setActionBeanContext(context);
DispatcherHelper.fillInValidationErrors(exec);
super.execute(wrapper, response);
}
}.flash(actionBean);
-Ben
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users