struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: resume after login feature
Date Fri, 06 Apr 2007 10:43:56 GMT
--- meeboo <deepstar@gmail.com> wrote:
> 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?

As someone else mentioned if you are using an
interface to set the original URL (like void
setOriginalUrl(String) & String getOriginalUrl()) then
you can map a redirect in your action's config, more
or less like the following:

<result type="redirect">${originalUrl}</result>

That was a day or two ago; I don't have a reference to
it handy and I don't recall who the poster was.

d.



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

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


Mime
View raw message