Re: How to redirect to the same page

2008-02-13 Thread Randy Burgess
Developer Nuvox Communications > From: Dravid <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 13 Feb 2008 07:34:36 -0800 (PST) > To: > Subject: Re: How to redirect to the same page > > > please some one help me > > thanks in advanc

Re: How to redirect to the same page

2008-02-13 Thread Dave Newton
Randy already gave you an answer. In the interceptor that checks for a logged-in user (or an action subclass, but an interceptor is probably better) save the URL that was being requested. After login check for the presence of this URL and if there redirect to it. It's unlikely you'll get many ans

Re: How to redirect to the same page

2008-02-13 Thread Dravid
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

Re: How to redirect to the same page

2008-02-13 Thread Randy Burgess
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 Us

Re: How to redirect to the same page

2008-02-12 Thread Dravid
thanks for reply, I have not implemented any Authentication and Authorization. I want to do it manually using struts2 tags Wes Wannemacher wrote: > > How are you performing the Authentication and Authorization? If you > are using container managed security, this will be done automagically. > A

Re: How to redirect to the same page

2008-02-12 Thread Wes Wannemacher
How are you performing the Authentication and Authorization? If you are using container managed security, this will be done automagically. As an example, here are the docs for setting this up in Tomcat 5.5.x -> http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html -Wes On 2/12/08, Dravid <[EM