I have written two index.jsp files in /Beer/AddRecipe and /Beer/ReviewRecipe/ folders. And one index.html in the application context. And have done changes to the tomcat-usres.xml
tomcat-users.xml looks like as follows.
Line 3,4,5,6,7 were there previously. All other things I have done.
And the wrote web.xml which looks as follows
But the problem is when I type in
http://localhost:8080/testauth1/Beer/AddRecipe/index.jsp or
http://localhost:8080/testauth1/Beer/ReviewRecipe/index.jsp it is not doing any authentication or authorization. Is there any thing wrong with my xml files. and Another thing do I have to remove role name in tomcat-users.xml that were there previously.
It works for the first time. But next time it doesn't as for username and password