The directory structure is J2EE standard.
Assume the document root directory of the web app to be deployed is
called "WebApp"
The contents of the document root directory:
- Static html pages and other resources such as images files
may be stored directly in this directory or its subdirectories,
e. g., WebApp/index.html, WebApp/images/cool.gif
- A subdirectory called WEB-INF - this directory contains servlets
and the resources used by the servlets. The contents of this
subdirectory are protected (they are not served up to clients directly).
WEB-INF content
- WebApp/WEB-INF/web.xml - The configuration file of the web
application, known as the deployment descriptor
- WebApp/WEB-INF/classes/ - Contains the class files of servlets,
tag libraries, and any other code in .class file form used
by the web application, the subdirectory structure of this directory
must coincide with the package structure of the servlets (think
of it as an exploded jar file)
- WebApp/WEB-INF/lib - Contains the jar files of other Java
classes used by the web application, such as third-party packages
(database drivers, frameworks, utilities, etc).
You can create these directories directly in the directory
"tomcat_root"/webapps/, or put them in another directory on your
server and map the context to that directory in the Context in server.xml


