Servlet Development Guide : PART IV Appendices : Appendix B Configuration Quick Reference : Global web.xml
Global web.xml
This section contains a quick reference to the elements in the global web.xml file, located in <installdir>\conf\servlet.
Table 5 describes the root element of the configuration file.
Table 5 – Global web.xml root element 
Element
Contains
Description
web-app
(error-page)
(mime-mapping)
Root element for a configuration file. All other elements in a configuration file are contained within the web-app element.
Table 6 describes the elements that configure an error page.
Table 6 – Error-page elements 
Element
Contains
Description
error-page
error-code
location
Defines a static page for the servlet container to return to the client when the Agent returns an error.
error-code
HttpErrorCode
Contains the numeric HTTP error code this error-page element applies to. For example, 500 specifies that the error-page handles internal server errors.
location
PathToFile or FileURL
Contains the location of the resource, either as a path to a file in a context or as a complete URL. For example, a value of /examples/500.html declares that the error-page is a file named 500.html located at the root level of the examples context. For a complete URL, the servlet container returns the contents of an HTTP request to the location. For example, the value http://other.com/404.html states that the container should return the result of the HTTP request.
Table 7 describes the elements that configure the mapping between a file extension and a MIME type.
Table 7 – Mime-mapping elements 
Element
Contains
Description
mime-mapping
extension
mime-type
Defines a mapping between a file extension and a MIME type.
extension
FileExtension
Contains the file extension, for example txt.
mime-type
MIMEType
Contains the MIME type, for example text/plain.