Protecting jsp sites through password in Tomcat
by guruprasad[ Edit ] 2014-02-01 10:56:12
To protect the jsp and java oriented websites through password like using htpasswd in php part,do the following:
Steps:
1.select conf folder in apache server.
2.Specify the username and password in tomcat-users.xml inside the <tomcat-users> tag like,
3.Specify the role specified in the web.xml file after <web-resource-collection> tag,
4.Restart the tomcat server.
5.Now the page will be protected through password.