About Deployment Descriptors
See Also
Each web module has a deployment descriptor, which is an XML file that describes
how the module should be deployed. The deployment descriptor tells the web server
about the components that make up the application. The contents of a deployment
descriptor can include:
- Context Parameters. These define the shared String constants that
are used by the web module.
- Servlet Declarations. These list the servlets that the web module
uses and provide initialization parameters.
- Servlet Mappings. These tell the servlet container which servlet
to call for a given (context-relative) request URI or for a request URI pattern.
- Filter Declarations. These list the filters that the web module uses.
- Filter Mappings. These tell the servlet which filters to invoke for
a servlet.
- Listener Declarations. These list the listeners that the web module
uses.
- Error Page Declarations. These declare the JSP and HTML files that
are to be used for handling specified error states and exceptions.
- The JSP Configuration Section. This section lists the tag libraries
that are used by the web module and lists the JSP property groups.
- Security Constraints. These list the the container-managed security
constraints that the server must enforce for the web module.
- Welcome File List. This list specifies the file to use for the default
welcome file, such as index.html.
The deployment descriptor (web.xml file) appears as a node
in the web module's WEB-INF directory in the Filesystems window.
Legal Notices