You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bob Jensen <Bo...@oracle.com> on 2003/09/23 21:02:49 UTC
Page flow question
I have the following page flow question.
PageOne calls PageTwo.
PageTwo does its thing and wants to return to PageOne.
I would like PageOne to be in the same state it was in when it called PageTwo.
What is the best way(s) to accomplish this using Struts?
Or is this outside of Struts scope?
thanks,
Bob
Re: Page flow question
Posted by Bob Jensen <Bo...@oracle.com>.
I can certainly pass PageOne's required fields to PageTwo add them
to PageTwo as hidden fields and then pass them back to PageOne.
But this means that PageTwo has to have knowledge about who called
it, later if I have PageThree call PageTwo I have to change PageTwo, to
be aware of PageThree's required fields.
I was hoping to avoid this.
Another possibility is to save PageOne's required fields in the session, and
get them there in PageOne's PreparePageOneAction, if they are not passed in.
This should avoid PageTwo about caring who called it as the ActionForward
could determine where to return to.
Does anyone know of any issue/concerns with this approach?
Bob
----- Original Message -----
From: "Christian Bollmeyer" <ja...@christianbollmeyer.de>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, September 23, 2003 12:31 PM
Subject: Re: Page flow question
> Am Dienstag, 23. September 2003 21:02 schrieb Bob Jensen:
>
> > I have the following page flow question.
> >
> > PageOne calls PageTwo.
> >
> > PageTwo does its thing and wants to return to PageOne.
> >
> > I would like PageOne to be in the same state it was in when it called
> > PageTwo.
> >
> > What is the best way(s) to accomplish this using Struts?
> >
> > Or is this outside of Struts scope?
> >
> > thanks,
> > Bob
>
> Did you already try to pass things in request scope?
>
> -- Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Page flow question
Posted by Christian Bollmeyer <ja...@christianbollmeyer.de>.
Am Dienstag, 23. September 2003 21:02 schrieb Bob Jensen:
> I have the following page flow question.
>
> PageOne calls PageTwo.
>
> PageTwo does its thing and wants to return to PageOne.
>
> I would like PageOne to be in the same state it was in when it called
> PageTwo.
>
> What is the best way(s) to accomplish this using Struts?
>
> Or is this outside of Struts scope?
>
> thanks,
> Bob
Did you already try to pass things in request scope?
-- Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Page flow question
Posted by Thomas Cornet <th...@cornet.name>.
Well, you can put in PageTwo hidden fields representing PageOne input
values, to get them when you returns to PageOne. You can also store PageOne
inputs in a session bean to get them later.
Thomas
At 21:02 23/09/2003, you wrote:
>I have the following page flow question.
>
>PageOne calls PageTwo.
>
>PageTwo does its thing and wants to return to PageOne.
>
>I would like PageOne to be in the same state it was in when it called PageTwo.
>
>What is the best way(s) to accomplish this using Struts?
>
>Or is this outside of Struts scope?
>
>thanks,
>Bob
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org