O'Reilly logo

Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition by Larry Brown, Marty Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 MVC

  • Forwarding 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required