The Resources element represents all the resources
available to the web application. This includes classes, JAR files, HTML, JSPs
and any other files that contribute to the web application. Implementations
are provided to use directories, JAR files and WARs as the source of these
resources and the resources implementation may be extended to provide support
for files stored in other forms such as in a database or a versioned
repository.
Resources are cached by default. Caching may be controlled by configuring
the appropriate caching attributes on the containing
Context.
Note: Running a webapp with non-filesystem based
Resources implementations is only possible when the webapp does not
rely on direct filesystem access to its own resources, and uses the methods
in the ServletContext interface to access them.
A Resources element MAY be nested inside a
Context component. If it is not included,
a default filesystem based Resources will be created automatically,
which is sufficient for most requirements.