Define Security Contraints
Steps
- Create a Folder in your web app called: C:\@StudentWebApp\SecretStuff
- Create a file inside of SecretStuff : C:\@StudentWebApp\SecretStuff\index.jsp
- Open deployment descriptor Path
- Add a security-constraint Code
Final Source
Source: /SecretStuff/index.jsp
Source: /WEB-INF/web.xml
Run It
/SecretStuff/index.jsp
(You should be prompted for a username and password)