struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis Leung <louis.le...@sun.com>
Subject Re: How to show the URL I want
Date Mon, 11 Feb 2002 20:47:35 GMT
But when i tried redirect="true", the session ids from before redirect and after
redirect are different ..... and the stuffs i put in the session are all gone

Alex Paransky wrote:

> Why would you loose the session?  I have been using redirect="true" in some
> of my actions without any problems.  The reason I needed to do it, was
> because I did not want "saveItemInfo.do" appearing on the URL.  User
> pressing, the RELOAD/REFRESH button would re-execute the save action.
> Instead, I wanted to show the "saveItemInfoSuccess.do" page to appear.  The
> redirect="true" allowed me to do this, without loosing the session.
>
> If the client lost the session, wouldn't client have to re-login again?
>
> -AP_
>
> -----Original Message-----
> From: Louis Leung [mailto:louis.leung@sun.com]
> Sent: Monday, February 11, 2002 11:59 AM
> To: Struts Users Mailing List
> Subject: How to show the URL I want
>
> Guys, anyone know how to send back the user the URL of the forward
> mapping, without using the redirect ??  Because I will lose the session
> if I use a redirect.
>
> Currently, I have this :
>     <action    path="/changeLocale"   type="ChangeLocaleAction">
>                 <forward name="continue"
> path="/instructor/create.do"/>
>     </action>
>
> and the browser is showing this :
> /changeLocale.do
>
> I want the browser to show this :
> /instructor/create.do
>
> without using this :
> <forward name="continue"   path="/instructor/create.do"  redirect =
> "true"/>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message