A web application needs to redirect the user to different pages based on their role. How should this logic be implemented using servlets in MVC?

  • In the Controller
  • In the Model
  • In the View
  • Using servlet filters
The logic for redirecting users based on their role should be implemented in the Controller. The Controller handles the application's flow and decides which view to render based on the user's role.
Add your answer
Loading...

Leave a comment

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