Javascript:go.history(-1) will accomplish this.. but beware you will lose the contents of the previous form

Unless you know of a way to retain all the information by pressing/clicking the back button ?

M-
----- Original Message ----- From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <user@struts.apache.org>
Sent: Saturday, August 27, 2005 9:45 AM
Subject: Re: Navigating back to a previous page


Hmm

Correct me if I wrong,
but  I think the reset method of the form will help you only if you want to
get back to the input page of the form.
In the described usecase Jonathan wants to get back to ANY other page he
could came from. So how you can ensure that he
have a form at all?

Regards
Leon

-----Ursprüngliche Nachricht-----
Von: Martin Gainty [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 27. August 2005 15:20
An: Struts Users Mailing List
Betreff: Re: Navigating back to a previous page

Jonathan-

If you want to preserve the values when back button is
pressed you will have to override reset method in your
(Dyna)ActionForm

Take a look at
http://64.233.161.104/search?q=cache:dHwd5qvFAJ4J:www.javapass
ion.com/j2ee/StrutsAdvanced_speakernoted.pdf+Struts+and+%22ove
rride+reset%22+AND+%22example%22&hl=en

Martin-
----- Original Message -----
From: "jonathan gilmore" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Saturday, August 27, 2005 6:41 AM
Subject: Navigating back to a previous page


>
> I have a common screen that is navigated to by many other
screens.  Does
> Struts have support for remembering the previous screen so
that my common
> screen needs only one 'back' button to return the user to
their original
> location?
>
> I have looked through the docs and havn't found anything.
>
> Any comments much appreciated
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





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


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

Reply via email to