On 13-08-2010 at 09:29, Aaron Stromas wrote:
> 
> It worked! So, with RedirectResolution the ValidationErrors are not
> considered?

Not quite. They don't exist anymore.

A little background:
- A redirect is a small response, that redirects the browser to another page.
  The page is retrieved in a new (!) request, and the URL in the browser
  changes.
- A forward is not a response per se, but directs your server/Stripes to
  forward the request to another URL to handle the response. The code
  generating the forward will have done some preprocessing. The URL in the
  browser doesn't change, as it's still the same request.

The validation errors are stored as a request attribute. When you return a
ForwardResolution, the JSP page can retrieve and use them. If you return a
RedirectResolution instead, the browser sends a new request, which doesn't
have any errors stored.
 

Oscar

-- 
   ,-_  Oscar Westra van Holthe - Kind      http://www.xs4all.nl/~kindop/
  /() )
 (__ (  The unexpected happens. You had better prepare for it.
=/  ()  -- Thatcher's law

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to