NonStop Servlets for JavaServer Pages (NSJSP) 5.0 System Administrator's Guide

Overview and Architecture
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-003
1-5
The Web Application
The Web Application
The web application is a collection of servlets, HTML pages, images, JSPs, a
deployment descriptor, and other configuration files that together represent all the
resources necessary to host a complete application on a J2EE-compliant webserver.
Web applications should be located in a directory (typically called webapps) under the
root directory of the container engine (default for the root for NSJSP is
/usr/tandem/webserver/servlet_jsp).
Assume you have an application called myapp1 and one of the servlets in that
application is called helloworld.
The directory structure to myapp1 would be
/servlet_jsp/webapps/myapp1
where myapp1 is the name of your web application directory.
At this level you can store files such index.html, or create subdirectories to manage
your web application resources, for example, /images for graphics files.
The WEB-INF Subdirectory
The WEB-INF subdirectory contains private files, that is, files that cannot be directly
served to the user for rendering by the browser. These files are typically Java class
files. To deploy any servlets, you must create the WEB-INF subdirectory. This directory
contains the /classes subdirectory where you store the compiled classes, the /lib
Figure 1-2. JSP Data Flows
VST902.vsd
Client Browser iTP WebServer
JSP Page
Java Servlet
Component
First Time Use
Subsequent Use
Compilation