iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Using NonStop Servlets for JavaServer Pages
(NSJSP)
iTP Secure WebServer System Administrator’s Guide—523346-002
9-24
Configuring the Web Application
The init-param element contains a name/value pair as initialization parameter of the
servlet. For example:
<servlet>
<servlet-name>
your alias servlet name
</servlet-name>
<servlet-class>
your servlet name
</servlet-class>
<init-param>
<param-name>name1</param-name>
<param-value>value1</param-value>
<param-name>name2</param-name>
<param-value>value2</param-value>
</init-param>
</servlet>
As noted previously, the servlet name is an alias of the servlet class name. The alias
allows you to change the name of the class without having to make changes to URL
references to the servlet in the application. If you have no need of this feature, use the
same name in both places.
Configuring the Web Application
A web application is a collection of servlets, HTML pages, images, JavaServer Pages,
a deployment descriptor and other configuration files all in one location. The web
application is organized as a structured hierarchy of directories that can be packaged
or unpackaged from a web application archive (WAR) file.
There are two parts to the directory structure:
•
A public area for resources such as HTML pages and images that can be used for
downloading to clients for directly rendering on the browser.
•
A private area with the root WEB-INF, which contains configuration files such as
the web.xml deployment descriptor, servlet classes and library files - resources
that require a managed lifecycle.