xml « Login « JSP-Servlet Q&A

1. login-config in web.xml & redirection    coderanch.com

Hi, I have a JSF web application and I use the JAAS mechanism to log in. I have a simple index page which is the first page of the application: In my web.xml I redirect to the login page in case of unsecured entrance: ...

2. Having problem when using web.xml to provide login system to user.    coderanch.com

I'm trying to build a login system into my webapps. Below is my web.xml and my tomcat-users.xml. I try to login using "myRole" and "myPassword" but it doesn't work. It keeps showing me the pop-up box until it fails to login and gives me HTTP error 401. I'm using Tomcat 4.1.29. Could somebody please advice? Thanks ----------------------------------------------------------------------------------------