The idea was to "refresh" the FlashScope each time, i.e. get the value
from the previous FlashScope (intended for the current ActionBean) and
put it in the next FlashScope. This does work if I do

return new RedirectResolution(SomeActionBean.class)

However, if I do a forward like

return new ForwardResolution("somePage.jsp")

it gets lost, because if I follow any link on "somePage.jsp" (or submit
a form on that page) the FlashScope is not saved for the next request.

Oscar Westra van Holthe - Kind schrieb:
> On 16-04-2010 at 16:27, Pascal wrote:
>> I am trying to implement a call stack with stripes so that I can return
>> the user to the page he came from, e.g. after processing a POST.
> [...]
>> Now, where I'm stuck atm:
>>
>> I am storing the pages in a java.util.Stack that is stored in the
>> FlashScope. The problem here is that when I'm forwarding to a JSP the
>> FlashScope is lost (I'm using the Preaction Pattern).
> 
> If you need a stack, i.e. if you also want to be able to create breadcrumbs,
> you'll need to store it in the session. The flash scope is only designed for
> giving values to a designated bean after a redirect -- it expires too quickly
> for what you're trying to do I think.
> 
> 
> Oscar
> 


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to