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

Using NonStop Servlets for JavaServer Pages With
The iTP Secure WebServer
iTP Secure WebServer System Administrators Guide522659-001
9-4
Overview
By default, the /webapps subdirectory contains your server applications. (Use docbase in
iTP_server.xml to set this path, or any other preferred location).
Myapps1 is an example application subdirectory. At this (root) level you can store files
such as index.html, or create subdirectories to manage your web application resources,
for example /images for graphics files.
There is a convention for application directory structures.
Example 9-1. 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_JSP_HOME) /usr/tandem/webserver/servlet_jsp
Filemap /myapp1 $server_objectcode
/usr/tandem/webserver/servlet_jsp
/conf
iTP_server.xml <Context path = “/myapp1” docbase=” webapps/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
/src a directory for source files
shoppingcart.java
/lib (REQUIRED) a directory for JAR files to be deployed
shopping.jar
/classes (REQUIRED) all servlet class files are kept here
shoppingcart.class
login.class