F IGURE 1.1
The steps in a server-side implementation of the MVC.
These steps are as follows:
The Web Client makes a request to the Web Server.
The Web Server passes the request to the Controller Servlet.
The servlet performs necessary manipulations to the JavaBean/EJB Model.
The Controller Servlet forwards the results to the JSP View.
The JSP View formats the Model for display and sends the HTML results back to the
The Web Server then conveys the information back to the Web Client.
Some benefits of using a server-side implementation of the MVC include
A clear separation of the presentation and transaction layers, which gives you the ability
to change the look and feel of an application without recompiling.
The ability to have multiple views for multiple clients.
The ability to have a less experienced programmer develop and maintain the user inter-
A quicker time-to-market by allowing the Controller programmers to focus only on
transactions, whereas the View programmers can focus primarily on presentation.
Servlets as MVC Controllers
We have chosen to use servlets as MVC Controllers after examining some of their strengths