ok, ok.  it is almost beer o'clock.  thanks.

-----Original Message-----
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 2:54 PM
To: Struts Users Mailing List
Subject: RE: Forwarding Back to one Of Many Pages


It's Friday afternoon man! Even Mark isn't thinking about Struts over there
in Blighty, most likely nursing a warm beer. ;-)

A way of knowing where you came from, is to pass a parameter called "url"
that has the value of the page where you came from. But, I want to STRONGLY
DISCOURAGE you from doing such a thing. Treat your web app as a state
machine and if you know where you are and what your state is, then you'll
only ever have to worry about where you can go next and ignore piddly
details like where you have just come from. This WORKS VERY WELL, and I just
did it so I'm not talking from anywhere south of my neck!

:-)

Simon

-----------------------------------------------------------------
Simon P. Chappell                     [EMAIL PROTECTED]
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526


>-----Original Message-----
>From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 11, 2002 1: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?
>
>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?)
>
>Thanks.
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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

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

Reply via email to