Simple web-application with form-based authentication. You can log in/logout and retrieve the list of users that have access to the app (their names and logins).
Users are retrieved from in-memory list of server (checkout the db_branch
for db implementation). Unauthorized users do not have access to any of app resources.
Default domain URL is http://localhost:8081/web-simple-servlet-app
List with user logins and passwords can be found at src/main/java/org.ivanservlets/user/UserDao.java
To build the web-app, run mvn package
in terminal from project destination.
A .war
file will appear at target folder after BUILD SUCCESS.
Start Tomcat server and deploy the .war
file.
*Note: the app uses javax-servlet-api v. 3.1.0
, so be advised to use web-container that does support that.