This section contains a quick reference to the elements in the global web.xml file.
Table 5 describes the root element of the configuration file.
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.
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.
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. |
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.