> -----Original Message-----
> From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 2:48 PM
> To: '[EMAIL PROTECTED]'
> Subject: FW: Forwarding Back to one Of Many Pages
>
>
> No takers on this one???
>
> -----Original Message-----
> From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 4:48 PM
> To: 'Struts Users Mailing List'
> Subject: Forwarding Back to one Of Many Pages
>
>
> I'm sure this has been asked before.  Several pages can link or forward to
> my page.  My page is mapped to a DispatchAction (because I need
> to get some
> initial data and then process the submitted data.)  After submitting, the
> user is forwarded to another 'action succeeded' page.  I need to
> know how to
> get the user back to whatever page they used to arrive at my initial page.
> The user could cancel and I would have to get them back to the original
> page, or the action succeeds and I have to get them back to the original
> page from the 'action succeeded' page.  How can I do this?
>

I've heard someone mention before that they maintain a stack on the session
with all "GET" type requests.
That way, they can go back to any one of them and not worry about needing
submitted data.

> Lastly, how can I prevent the user from bookmarking the form page
> or 'action
> succeeded' page.  Or at least, how can I make the bookmark be a
> page I want
> it to be (i.e., the initiating page in a chain of pages?)

Use tokens (see docs for more details or the struts-example for a running
example)

>
> Thanks.
>


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to