Pavel Kolesnikov wrote:
On Mon, 16 Aug 2004 [EMAIL PROTECTED] wrote:


I'm trying to implement a scenario in which if the user who has not
logged in clicks on a link to a page "for logged in users only"  should
be redirected to "login page", and then if the login operation succeeds
another redirection takes the user, to the page that was originally
requested.

Are there any "commonly known" techniques to do this smoothly with
Struts??


What about Container Managed Authentication? It's part of J2EEs standard (so it's not Struts specific)
and it allows you to configure server to protect your pages
as you've described above.


See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html
for Tomcat5 configuration.

Or use securityfilter on http://securityfilter.sf.net, a servlet filter which mimics container managed security in case you do not want to change your container's settings.


-ok


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to