I have an application which has one main servlet MainServlet.java and it intercepts all http request ( url-pattern is /* ). This application is unsecured. Now I want to implement login functionality such as
- Non-authenticated user will be directed to login form http:/localhost:8080/app/login
- Login form target http:/localhost:8080/app/loginAuth
Any Idea How to go about it?