In terms of design pattern, which one follows the Model View Controller (MVC) more closely?
- Both follow MVC equally
- JSPs
- Neither follows MVC
- Servlets
JSPs (JavaServer Pages) follow the Model-View-Controller (MVC) design pattern more closely than Servlets. JSPs provide a clear separation of concerns with HTML as the view, JavaBeans as the model, and tag libraries for controller logic.
Loading...
Related Quiz
- _________ encoding is a common technique to prevent XSS by converting special characters into HTML entities.
- When implementing a filter, it's critical to maintain the correct order of processing by calling __________ in the doFilter method.
- WebSocket connections are maintained even if the underlying _________ changes, like from HTTP to HTTPS.
- How do distributed transactions differ from local transactions?
- Which interface must a class implement to act as a filter in a web application?