How are servlets used in conjunction with JSPs in a typical MVC application?

  • Servlets and JSPs are interchangeable and can be used for any MVC role.
  • Servlets and JSPs are not used together in MVC applications.
  • Servlets handle business logic, and JSPs handle presentation logic.
  • Servlets handle presentation logic, and JSPs handle controller logic.
In a typical MVC application, servlets are often used to handle business logic, while JSPs are used for presentation logic. Servlets and JSPs work together to achieve a separation of concerns in MVC.
Add your answer
Loading...

Leave a comment

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