NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide

Overview and Architecture
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-002
1-4
JavaServer Pages (JSP)
The applications, including Java servlets and JavaServer Pages, class libraries,
resources such as HTML or XML documents, and images.
The Servlet API and runtime management including initializing, invoking, and
managing the Servlet and JSP lifecycles.
The deployment descriptors (the web.xml file) that contain resource definitions
such as MIME types, mapping of requests to servlets, access control, and servlet
initialization parameters.
The web container instantiates the servlet and provides the communication between
the iTP WebServer and the servlet. Specifically, the web container:
Instantiates the servlet
Invokes the servlet’s init() method
Requests services from the user by invoking the service() method
Invokes the destroy() method when the servlet is to be garbage-collected
Manages a similar lifecycle for JSP files
Deploys and creates WAR (web archive) files
JavaServer Pages (JSP)
JavaServer Pages (JSP), a presentation-layer technology that sits on top of the Java
servlets model, simplifies the creation and management of dynamic HTML. JSP uses a
component-based rather than a page-based approach to development. In page-based
Figure 1-1. A J2EE Web Container With Two Applications
VST901.vsd
WEB CONTAINER
APPLICATION # 2
JAVA
SERVLETS
DEPLOYMENT
DESCRIPTOR
JAVA
CLASSES
JSP
PAGES
APPLICATION # 1
JAVA
SERVLETS
DEPLOYMENT
DESCRIPTOR
JAVA
CLASSES
JSP
PAGES