I would save the action name as a string in the users session and then
redirect to that location once auth is complete. That is the way I have done
it in the past.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dravid <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <user@struts.apache.org>
> Date: Tue, 12 Feb 2008 09:12:06 -0800 (PST)
> To: <user@struts.apache.org>
> Subject: How to redirect to the same page
> 
> 
> Hi,
> 
> After a successful login I don't want to redirect the user to a hardcodes
> page, but I want the user to be redirected where he wanted to go. E.g. if a
> user clicks on 'sell' he will be forced to log in and after login the
> sell-page should be shown. If he clicks on buy the buy-page should be shown
> after login. Is there an elegant way to do this?"
> 
> please help with a piece of code.
> 
> thanks in advance
> -- 
> View this message in context:
> 
http://www.nabble.com/How-to-redirect-to-the-same-page-tp15436570p15436570.htm>
l
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



This email and any attachments ("Message") may contain legally privileged 
and/or confidential information.  If you are not the addressee, or if this 
Message has been addressed to you in error, you are not authorized to read, 
copy, or distribute it, and we ask that you please delete it (including all 
copies) and notify the sender by return email.  Delivery of this Message to any 
person other than the intended recipient(s) shall not be deemed a waiver of 
confidentiality and/or a privilege.

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

Reply via email to