There is a good article on a login interceptor here:
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
A question is posted further down the page on how to redirect to the
originally requested page after a successful login.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: Dravid <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <user@struts.apache.org>
> Date: Wed, 13 Feb 2008 07:34:36 -0800 (PST)
> To: <user@struts.apache.org>
> Subject: Re: How to redirect to the same page
> 
> 
> please some one help me
> 
> thanks in advance
> 
> 
> 
> Dravid wrote:
>> 
>> 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-tp15436570p15459605.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