Acegi / Spring Security can certainly get this done, but may be overkill
if the authentication and authorization requirements are simple.
Container Managed Security is probably the quickest and easiest way to
get the described behaviour, but that also doesn't always fit. For a
home-brewed custom solution a Struts2 interceptor or simply a servlet
filter will give more flexibility.
So, the answer is yes, this can be achieved using interceptors. What
specifically do you need help with?
L.
Jim Kiley wrote:
I wouldn't implement it with interceptors so much as I'd look into something
like Acegi Security (now Spring Security if I remember right). I'm having a
decent level of success on an Acegi / Sitemesh / Struts 2 / Spring /
Hibernate project right now.
jk
On Fri, May 9, 2008 at 6:01 PM, Jaarthy <[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to implement a scenario in which if the user who has not logged
in clicks on a page "for logged in users only" should be
redirected to "login page", and then after logging in he should be
redirected to the page he originally requested for.
I need to implement this in struts2.Can I achieve this using
Interceptors?Kindly help.
Thanks,
Aarthy
--
View this message in context:
http://www.nabble.com/redirect-after-logging-in-tp17157183p17157183.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]