NonStop Servlets for JavaServer Pages (NSJSP) 5.0 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-003
3-10
web.xml
The context path shows the context which is the start of the path for any URL
attempting to locate and run a servlet. The docbase could be used to create a separate
location for the application, instead of the default webapps directory. For convenience,
you could name this file as orders.xml so that it is easy to identify later on.
The corresponding filemap from filemaps.config should look like this:
Filemap /orders $server_objectcode
Reloading Servlets
If the reloadable attribute is set to true in the <context>.xml file (located in the
Context configuration file in the $NSJSP_HOME/conf/NSJSP/<host-name>
directory, as shown in Example 3-6), the container automatically reloads classes
(loaded from either the WEB-INF /classes directory or JAR files in the WEB-INF/lib
directory) that have changed.
Note that automatic reload support is not recommended for production applications
because of the 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. For more information, see Section 6, Logs and Error Conditions.
web.xml
The web.xml file is a deployment descriptor containing context configuration. A
default version of the web.xml file is located in the $NSJSP_HOME/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 to support
specific servlet control.
The Default Version
The web.xml file in $NSJSP_HOME/conf provides the default path contexts and
controls of servlets and JSP. The text below describes some sample XML control
elements.
Example 3-6. Setting the Reloadable Attribute
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" >
</Context>










