NonStop Servlets for JSP System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
3-8
web.xml
Reloading Servlets
If the reloadable attribute is set to true in the iTP_server.xml file (as shown in 
Example 3-5), the container automatically reloads servlet classes (loaded from either 
the WEB-INF classes directory or a JAR file in the WEB-INF/lib directory) that have 
changed. The reload function is applicable only for the top level Servlet classes. It 
means that any changes in the class that are used inside user servlets will not be 
brought in. 
Note that automatic reload support is not recommended for production applications 
because of extra overhead required to perform the necessary checks on every request. 
Log Files
The iTP_server.xml file also sets the location of the files that contain logging 
information. See Section 5, Logs and Error Conditions for details. 
web.xml
The web.xml file is known as a deployment descriptor, and it contains configuration 
contexts for servlets. A default version of the web.xml file is located in the 
iTPWS_INSTALL_DIR/servlet_jsp/conf directory. This file sets the behaviors of 
all applications and their related resources. 
You can also create a version of the same web.xml file within the WEB-INF 
subdirectory of any specific application to override the "global" web.xml file, and thus 
support specific servlet control.
The Default Version
The web.xml file in iTPWS_INSTALL_DIR/servlet_jsp/conf provides the default 
path contexts and controls of servlets and JSP. Here are some example XML control 
elements: 
Preloading Servlets 
A set of servlets can be automatically loaded on startup time by using the <load-on-
startup> element in the web.xml file, as shown in Example 3-6. 
The load-on-startup element indicates that this servlet should be loaded on the 
startup of the web application. The content of this element must be a positive integer 
indicating the order in which the servlets should be loaded. Lower integers are loaded 
Example 3-5. Setting the Reloadable Attribute
<Context path="/examples" docBase="examples" debug="0" 
reloadable="true" > 
</Context>










