You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Collings <jl...@gmail.com> on 2009/05/26 16:53:53 UTC
Force user to specific page
How can I force the user to go to a specific page, if a specific
property is set?
Jim C.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Force user to specific page
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/5/26 Jim Collings <jl...@gmail.com>:
> I could write an interceptor but this seems like re-inventing the
> wheel as it seems like there should be something out there that will
> do this already.
Your own Interceptor is the best solution and the second best option
is to use Acegi or something similar
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Force user to specific page
Posted by Jim Collings <jl...@gmail.com>.
Server side. Thing is that we have container based security and I just
need to check and make sure the userid is set. If it isn't, force the
user to the page where that happens.
I could write an interceptor but this seems like re-inventing the
wheel as it seems like there should be something out there that will
do this already.
Jim C.
> 2009/5/26 Jim Collings <jl...@gmail.com>:
>> How can I force the user to go to a specific page, if a specific
>> property is set?
>
> With JavaScript? Or if you mean server side solution, in execute()
> method return different result namr base on that property which is
> defined as a redirect to page you want.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Force user to specific page
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/5/26 Jim Collings <jl...@gmail.com>:
> How can I force the user to go to a specific page, if a specific
> property is set?
With JavaScript? Or if you mean server side solution, in execute()
method return different result namr base on that property which is
defined as a redirect to page you want.
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org