struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meeboo <deeps...@gmail.com>
Subject Re: resume after login feature
Date Fri, 06 Apr 2007 10:14:01 GMT

One last question regarding this. As I beforehand don't know where to
redirect the user after the login action I will have to implement the
ServletResponseAware interface and then use the HttpServletResponse for
this. This seems like an ugly way to redirect the user, are there other ways
maybe?


Dave Newton-4 wrote:
> 
> --- meeboo <deepstar@gmail.com> wrote:
>> Yeah Dave, the problem is passing the data. I have
>> my Login.java action class which implements 
>> ServletRequestAware but it'll of course only
> retrieve
>> localhost:8080/login.action since that's the request
>> URI. I need to somehow tell it which location the 
>> user tried to login from so that it can redirect
>> back to that specific page. 
> 
> Passing information to an Action is trivial; implement
> a known or new interface and set the data inside the
> interceptor. 
> 
> You don't care about the *action's* view of
> request-land, you care about the *interceptor's*
> request; that's where the original (request) is, no?
> 
> d.
> 
> 
> 
>  
> ____________________________________________________________________________________
> Don't pick lemons.
> See all the new 2007 cars at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/resume-after-login-feature-tf3506442.html#a9870255
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message