Where to Put Web Module Files

See Also

The following illustration depicts the placement of files within the required web module hierarchy. This view is reflected in the Filesystems window. Note that the web module root (document base) directory corresponds to the filesystem root.

The illustration shows the JSP files in both the root directory and the WEB-INF directory. Note that users cannot directly access JSP files that are under the WEB-INF directory. These JSP files can be accessed only by another JSP file or by a servlet, such as by a forwarding request.

TLD files are typically packaged in the tag library's JAR file. If not, place the TLD file in the WEB-INF directory or subdirectory.

Note that Tomcat does not support .zip files in the WEB-INF/lib directory.

Web module hierarchy. Root contains WEB-INF, which contains classes, lib, and tags.

tip   
See Also
About Web Modules
About Creating Web Modules
Creating a JSP File
Using JAR Files in Web Modules
Using Tag Libraries
Adding Tag Files to a Web Module
Adding Servlets to a Web Module
Adding HTML Files to a Web Module
Adding Applets to a Web Module
Working With Deployment Descriptors
Using CVS With Web Modules

Legal Notices