Chapter 16. JSP Communication with Servlets

In this chapter we are going to discuss how you can incorporate servlets and JSPs using the Model-View-Controller design pattern (MVC). The MVC originated from Smalltalk and was used to design user interfaces, wherein the application was made up of three classes: a Model, a View, and a Controller. Each of these classes is defined in Table 16.1.

Table 16.1. The Classes of the MVC
ClassDefinition
ModelThe Model represents the data or application object. It is what is being manipulated and presented to the user.
ViewThe View is the screen representation of the Model. It is the object that presents the current state of the Model.
ControllerThe Controller defines the way the user interface reacts to the user's ...

Get Pure Java Server Pages™ 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.