Chapter 15. Integrating Servlets and JSP: The Model View Controller (MVC) Architecture
Topics in This Chapter
Understanding the benefits of MVC
Using
RequestDispatcher
to implement MVCForwarding requests from servlets to JSP pages
Handling relative URLs
Choosing among different display options
Comparing data-sharing strategies
Forwarding requests from JSP pages
Including pages instead of forwarding to them
Servlets are good at data processing: reading and checking data, communicating with databases, invoking business logic, and so on. JSP pages are good at presentation: building HTML to represent the results of requests. This chapter describes how to combine servlets and JSP pages to best make use of the strengths of each technology.
Understanding the ...
Get Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.