iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)

Using NonStop Servlets for JavaServer Pages
(NSJSP)
iTP Secure WebServer System Administrator’s Guide523346-002
9-6
The Web Container
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. This xml file essentially replaces the servlet properties file
used in previous versions of servlets, such as Servlets 2.0 in HP product number
T0094.
It is the web container’s responsibility to instantiate the servlet and provide the
communication between the iTPWebserver and the servlet. The container provides the
following services:
Instantiate the servlet
Invoke the servlet’s init() method
Service requests from the user by invoking the service() method
Invoke the destroy() method when the servlet is to be garbage collected
Manage a similar lifecycle for JSP files
Deploy and Create (web archive) WAR files
Figure 9-1. A J2EE Web Container With Two Applications
VST901.vsd
WEB CONT A INER
APPLICATION # 2
JAVA
SERVLETS
DEPLOYMENT
DESCRIPTOR
JAVA
CLASSES
JSP
PAGES
APPLICATION # 1
JAVA
SERVLETS
DEPLOYMENT
DESCRIPTOR
JAVA
CLASSES
JSP
PAGES