If I open a sample URL http://localhost:8080/examples/jsp/security/protected/index.jsp first time, I will see login form with username and password fields. Html code of this form is located in login.jsp file, but I see no code to call it from index.jsp. How does this call fullfilled?
If I open a sample URL http://localhost:8080/examples/jsp/security/protected/index.jsp first time, I will see login form
Share
It is defined in the corresponding
web.xml:You find the file in
<tomcat>/webapps/examples/WEB-INF. It utilizes the built-in Java EE security features. The preceedingsecurity-constraintsection defines the resources to be protected: