You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Claude Glauser <cl...@smile.ch> on 2003/02/01 13:05:15 UTC
How can I redirect a user to the previous page ?
Hi,
I have a struts action to change the language.
A link to this action is in the mainmenu of
the webapplication. This link is always visible
in the browser (while in my webapp).
How can I redirect to the page the user
was and display it in the selected language ?
Is there a way to get the url where to user
was previously ?
Thanks for any hints.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: How can I redirect a user to the previous page ?
Posted by Affan Qureshi <qu...@etilize.com>.
Save the url in session against some key and use that to forward to when
done on the second page. This way you can send the user to any page he/she
came from.
Affan
----- Original Message -----
From: "Claude Glauser" <cl...@smile.ch>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, February 01, 2003 5:05 PM
Subject: How can I redirect a user to the previous page ?
> Hi,
>
> I have a struts action to change the language.
> A link to this action is in the mainmenu of
> the webapplication. This link is always visible
> in the browser (while in my webapp).
> How can I redirect to the page the user
> was and display it in the selected language ?
>
> Is there a way to get the url where to user
> was previously ?
>
> Thanks for any hints.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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