NonStop Servlets for JSP System Administrator's Guide
Installing NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
2-9
Directory Example
Directory Example
Example 2-2 is intended to summarize the answer to the question, "How do you get
from a URL to the application and to a servlet?" (Refer to Map Requests to
Applications and Servlets on page 3-15.) The example shows the main directories and
the configuration necessary to get NSJSP up and running.
The example assumes the default location of /usr/tandem/webserver as the root
of your directory structure.
For further details, see Configuring Web Applications on page 3-10, which shows the
directory structures for applications and the changes you make to the configuration
files in order to host an application and deploy its servlets.
Example 2-2. Directory and Configuration Overview
In this example the default root directory ($root) is shown as
/usr/tandem/webserver
/usr/tandem/webserver
/conf
servlet.config set env (SERVLET_NSJSP_HOME) /usr/tandem/webserver/servlet_jsp
Filemap /myapp1 $server_objectcode
/usr/tandem/webserver/servlet_jsp
/conf
iTP_server.xml <Context path = “/myapp1” docbase=”myapp1”>
</Context>
web.xml Eg. <servlet-name>, <servlet-class>, <init-param>,
<load-on-startup>
/usr/tandem/webserver/servlet_jsp/webapps
/myapp1
index.html Put static resources at the top level of structure
/images Or use subdirectories for separating resources
logo.gif
ourfounder.gif
/WEB-INF REQUIRED - A private subdirectory structure containing
resources directly provided by servlets and jsp
web.xml Eg. <servlet-name>, <servlet-class>, <init-param>,
<load-on-startup>
/src A directory for source files
shoppingcart.java
/lib A directory for JAR files to be deployed
shopping.jar
/classes All servlet class files are kept here
shoppingcart.class
login.class