Taming Tomcat
Anatomy of a Webapp (ii): Layout of resources
- Magic directory WEB-INF
- Content never directly served by Tomcat
- Which means you can stick things in here you don't
want users to be able to access
- Contains main configuration file web.xml
- Name is magic: it must be exactly that
- Contains subdirectories
- lib: any jar files - libraries you may
want to use in your application
- classes: Java class and resource files
you may want to use
- Other directories for servable content
- e.g. plain HTML, CSS, pictures, other media
- JSP files