Set up security in your web.xml; when the server encounters a request for a protected url and there is no session, it will redirect the request to a form defined in your security and then display the requested url.
Your form should post to j_security_check with inputs name j_username and j_password; something like this: <security-constraint> <web-resource-collection> <web-resource-name> assdos maintenance </web-resource-name> <description> assdos security </description> <url-pattern> /maintenance/* </url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <description> assdos roles </description> <role-name> permanences </role-name> </auth-constraint> <user-data-constraint> <description> ssl niet verplicht </description> <transport-guarantee> NONE </transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method> FORM </auth-method> <form-login-config> <form-login-page> /pages/security/loginwl.jsp </form-login-page> <form-error-page> /pages/security/erreur.jsp </form-error-page> </form-login-config> </login-config> <security-role> <description> security role assdos </description> <role-name> permanences </role-name> </security-role> "Lázaro Miguel Fung" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > > How I can invoke a login action from any pages thats require user be logged, > and after valid logon, return to the page that the user was. > > TIA > LFung --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]