For an application that needs to authenticate users based on roles, what is the best approach to implement this in servlets?

  • Container-Managed Security
  • Custom Authentication Logic
  • Database Authentication
  • SSL Authentication
The best approach for implementing user authentication based on roles in servlets is to use Container-Managed Security, which is configured in the deployment descriptor (web.xml) and utilizes the container's security mechanisms.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *