I am trying to run a servlet on tomcat in eclipse. When i do run on server, the servlet runs and provides me with a link like follows:
\"http://localhost:8443/AuthServe
In TOMCAT_HOME/conf folder, there’s a file named web.xml. In there, you have to add a security-constraint element.
TOMCAT_HOME/conf
web.xml
security-constraint
secured page /... CONFIDENTIAL
Make sure that matches your path that you want to be secured.