|
The sample applications included
as part of the Sun Java System Web Server are packaged according to a
consistent directory structure. This structure is meant to represent a
realistic approach to defining source code workspaces for J2EE applications.
You might be establishing a
source code directory structure for your own J2EE applications. If so,
you should review the layout of the sample application source directories
and how they are used in the Ant-based build environment.
The C++ samples are under the
following directory:
install_root/samples/nsapi
install_root/samples/nsacl
This following directory contains
source code of some of the components that implement HTTP servlet session
management:
install_root/samples/java/apis
The Java samples are under
the following directory:
install_root/samples/java/webapps
For most samples, the following
directories and files exist:
| Directory or File |
Description |
| sampleroot/
|
|
samplename.war
|
Pre-built
J2EE WAR file. |
docs/
|
Sample setup
instructions. |
images/
|
Images for
the documents.
|
src/
|
Sample source
code. Contains J2EE deployment descriptors. |
sql/
|
Database setup
scripts and DDL. |
docroot/
|
Web content
such as JSPs, HTML, and images. |
WEB-INF/
|
Tag library
definition and resource files. |
packagename/
|
Java source
code (if any). |
build/
|
Transient
build area. |
classes/
|
Class files
generated by build facility. |
assemble/
|
Transient
assembly area. |
war/
|
WAR file assembly
area. |
jar/
|
JAR file assembly
area. |
|