iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Using NonStop Servlets for JavaServer Pages With
The iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—522659-001
9-34
Model-View-Controller Designs
This is fine for simple applications but requires all request processing to be in the JSP
page. Each page must therefore be individually responsible for managing application
state and verifying authentication and maintaining security. The second approach is to
adopt the model/view/controller design, see Figure 9-5, A Model/View/Controller
Design. In this, processing is divided between the controller and presentation
components. The presentation component, or View, are JSP pages that generate the
HTML or XML response that determines the user interface rendered by the browser. The
controller (a servlet or JSP page) is a front-end that is not concerned with presentation,
just the processing of HTTP requests. The controller instantiates beans and other objects
to be used by the presentation component.
Figure 9-4. A Basic JSP Model
VST904.vsd
JSP
Java Bean
or Java Servlet
REQ
RES
CLIENT
BROWSER
WEB CONT AINER
1
2
3
4
Data Storage