struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <jmi...@gmail.com>
Subject Re: passing objects from one request to another
Date Sat, 25 Feb 2006 00:34:31 GMT
On 2/24/06, Chris Cheshire <cheshirator@gmail.com> wrote:
> I have the following chain of events in an app
>
> ActionA -> PageA -> ActionB -> ActionC
>
> All transitions are forward requests (not redirects) and PageA ->
> ActionB is a POST.
>
> In ActionA I have a form bean prepopulated with a collection to
> display and choose one of in PageA. ActionB then needs to get this
> info back out of the form.
>
> The problem is, since everything is in request scope, once the ActionA
> -> PageA forward is completed, the bean is no longer valid. Is there
> any way to get the bean to transfer to the next request, or do I need
> to use a session bean instead (definitely not ideal as then I have to
> put the cleanup for it in numerous places).

Since you submit pageA to actionB, the form associated with actionB
will be filled out with data from pageA. I don't see what the problem
is. Yes, ActionForm will be created again.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message