This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have coded a small example that shows various listeners and filter invocation.
The issues are:
1. I am unable to see any of the system.out.println in listeners and filters on the console except
i)Value bound ii)user nto in role
2.The getRemoteUser() isnt returning "max".
The input to form is username:max password:max for authentication as defined in web.xml and the input to Welcom.jsp are max and eassy .
The servlet check if the username and password are same as defined in database and upon correct login forwards request to other JSP
I am using Eclipse Helios and tomcat server 5.5 .
please do tell where to see tomcat logs.
There is a lot of code to digest, also code not relevant to your problem that is why people probably didn't give you an answer immediatly.
First of all, correct the mistakes in your web.xml:
and should be
Secondly: I couldnot get it working because of the <user-data-constraint>, did you do anything to the Tomcat settings (like enable SSL-port?)
Thirdly: your Welcom.jsp is protected and once you are in it you have a sort of login-form again: any reason for that? The username and password are not used by the standard JEE security, if you want that you have to use form-login like this: