Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1. Write a servlet that will check the identity of userName and password, for example from the database, and write the role.
2. Write a filter that will receive the role of an authorized user and prohibit the transition to any pages, to do any actions.
3. Make a jsp page that will use a servlet and send data!
PS Don't forget to register the servlet and filter in web.xml.
1.
2.
3.
1. Authorization by container means - JAAS
2. Spring - Spring Security
3. Spring Security + Active Directory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question