This is what I have done for form based authentication...
Now, if user is not authenticated, login page opens. In login.jsp, I have a form whose action I have set to j_security_check. Form fields are j_user_name and j_password.
I mapped a login filter with the url
pattern /j_security_check. So from login.jsp, when user submits the login page, Login filter should be called.
I don't know why my LoginFilter is not called? Filter gets called only when I change url-pattern of LoginFilter to /pdfs/* (i.e., same as the url patter n of the protected resource)
Can anyone please help me in this regard
I am deploying my web application on
tomcat. Is it a bug of tomcat?
Thanks
[ January 06, 2007: Message edited by: Naseem Khan ]