I have set username in tomcat-users.xml file like:
And in web.xml i have set the various tags like:
But when i try to access the servlet /myServ.do i am asked to enter username and password. But its not accepting any of username and password i set in tomcat-users.xml..(Bindu, bindu) or (admin, ).I mean i am not able to access the servlet.
Its working now.
I just stopped and restarted Tomcat again.
I think I did not restart tomcat when i changed tomcat-users.xml .Thats why it was not accepting the username and passwords.
Well,I am happy now!
subject: Unable to access the servlet even on entering username/password set in tomcat-users.xml