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.
Loading...
Related Quiz
- What is the significance of using HttpOnly cookies in the context of XSS prevention?
- What is the correct order of method calls in the lifecycle of a filter?
- _________ is used to monitor lifecycle events of a session.
- Can a filter modify the request and response objects?
- Which strategy involves adding more servers to handle increased load in a web application?