That is good to know. Thank you for explaining.

-a

On 15 August 2010 02:05, Oscar Westra van Holthe - Kind <
os...@westravanholthe.nl> wrote:

> 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/<http://www.xs4all.nl/%7Ekindop/>
>  /() )
>  (__ (  The unexpected happens. You had better prepare for it.
> =/  ()  -- Thatcher's law
>
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAkxng7kACgkQLDKOJAl7tOKLPgCg3n+ZmVlMX2cuze4d2QSDItXX
> ajoAoLGuT34FC/hP7iD3UPLsYu/Lv7aw
> =XG7C
> -----END PGP 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
>
>


-- 
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
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