I guess "javascript:history.back()" should help you.
Regds.-
Ravi
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 2:51 PM
To: Struts Users Mailing List; Martin Gainty
Subject: Re: Navigating back to a previous page
Can
quot;Leon Rosenberg" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'"
> 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
t;
To: "'Struts Users Mailing List'"
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
http://www.manfred-wolff.de/struts/articles/HowTo-Back.html
jonathan gilmore schrieb:
>
> 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 t
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 whe
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.javapassion.com/j2ee/StrutsAdvanced_speakernoted.pdf+Struts+and+%22override+reset%22+AND+%
No, struts doesn't support it (as far as I know) but it's really easy to
implement.
If you have something like a baseaction (an action all your actions extend)
or your own controller servlet just do:
req.getSession.addAttribute("lastAction",
"//"+req.getPathInfo());
In your jsp simply put:
Back
7 matches
Mail list logo