why do i get the protected page instead of the login page?
问题 I'm using JAAS to secure my web-application. As the title says, the problem is that i get the home page which is in the protected folder instead of the login page. Actually the home page is my welcome page. By the way, it works fine when i write the URL (/myappJaas/protected/admin/homeadmin.xhtml) in the web browser. This is the web.xml file: <welcome-file-list> <welcome-file>/protected/admin/homeadmin.xhtml</welcome-file> </welcome-file-list> <security-constraint> <web-resource-collection>