0

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

  1. Non-authenticated user will be directed to login form http:/localhost:8080/app/login
  2. Login form target http:/localhost:8080/app/loginAuth

Any Idea How to go about it?

Tyler Hyndman
  • 1,402
  • 3
  • 17
  • 24

2 Answers2

0

Add a Filter for that it is better suited

Community
  • 1
  • 1
jmj
  • 237,923
  • 42
  • 401
  • 438