The static-resources element
Introduction
The static-resources describes how static
resources are handled by the DefaultServlet or by the WebdavServlet.
That is the default service for all web applications, that serves static resources.
it It processes all requests that are not mapped to other servlets with servlet mappings.
There should be only one static-resources element inside an subsystem=web element.
Attributes
Common Attributes
The static-resources supports the following attributes:
Attribute Description listingsIn case there isn't an index file in a directory a listing will be generated and used as index. The default value is
false.sendfileMinimum size for sendfile usage in bytes. The default value is
49152.file-encodingFile encoding to be used when reading static files.
read-onlyTell if the resource accessed are write protected. The default value is
true.webdavThis flag value indicates that the
WebdavServletwill be used. That adds support for WebDAV level 2. The default value isfalse.secretSecret information used to generate reasonably secure lock ids for the
WebdavServletmax-depthDefault depth for the
WebdavServletthat is for the PROPFIND Method. The default value is3.disabledTell the container that the
static-resourcesServlet should be disabled. The default value isfalse.



