Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

B.3 Global web.xml

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.

Table 5: Global web.xml root element 

ElementContainsDescription

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 

ElementContainsDescription

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 

ElementContainsDescription

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.



Previous fileTop of DocumentContentsIndex pageNext file

©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.