31.3. Structuring your Web Application

A Web Application is made of several parts:

The directory structure of your application should look like this:

etc

The web.xml file describing your web application.

web

HTML files, images, and JSPs that will be copied to the Tomcat directory.

src

Servlet sources that should mimic the package hierarchy.

beans

Bean sources that should mimic the package hierarchy.

NoteNote
 

If your beans come from another application, you do not need the beans directory.

Two examples using Tomcat and JOnAS are provided with the JOnAS distribution. They can be found in the example directory: