On 29-04-2010 at 17:15, Nikolaos Giannopoulos wrote: > From the docs it appears that Flash Scope uses "session" but not > "request" scope and that it does some prefixing to avoid conflicts if > the Flash Scope was used more than once for the same named attribute. > It also appears to timeout objects after 2 minutes so it has some cleanup. [...] > I'm sure there are some pretty simple and very valid reasons as to why > it wouldn't simply use "request" scope. > > Anyone know why? > ( I suspect it has something to do with forwarding or redirecting requests )
When forwarding a request, a framework can simply put the action bean in the request scope, and the JSP page can access it. For a redirect this is not possible, because the page is rendered in a different request. The flash scope is designed to fix this 'problem', and to implement it we need to use the first scope above request, the session scope. This is then artificially limited to respond only to specific redirects (magic I cannot explain), and cleaned up after 2 minutes if not used. Oscar -- ,-_ Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/ /() ) (__ ( No trees were killed in the creation of this message. However, =/ () many electrons were terribly inconvenienced. ------------------------------------------------------------------------------ _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users