JBoss, a division of Red HatJBoss.org - Community driven.

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:

AttributeDescription
listings

In case there isn't an index file in a directory a listing will be generated and used as index. The default value is false.

sendfile

Minimum size for sendfile usage in bytes. The default value is 49152.

file-encoding

File encoding to be used when reading static files.

read-only

Tell if the resource accessed are write protected. The default value is true.

webdav

This flag value indicates that the WebdavServlet will be used. That adds support for WebDAV level 2. The default value is false.

secret

Secret information used to generate reasonably secure lock ids for the WebdavServlet

max-depth

Default depth for the WebdavServlet that is for the PROPFIND Method. The default value is 3.

disabled

Tell the container that the static-resources Servlet should be disabled. The default value is false.