sun.com | How To Buy | My Sun | Worldwide Sites

Sun ONE Web Server
Samples Directory Structure

The sample applications included as part of the Sun ONE 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. If you are establishing a source code directory structure for your own J2EE applications, you will find it useful to 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>/plugins/nsapi <install_root>/plugins/nsacl This following directory contains source code of some of the components that implement HTTP servlet session management: <install_root>/plugins/java/apis The java samples are under the following directory: <install_root>/plugins/java/samples/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: JSPs, HTML, images, etc.
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.

Company Info | Contact | Copyright 2003 Sun Microsystems