Web Module Deployment Descriptor (web.xml) Node
See Also
The web module deployment descriptor node
in the Filesystems window represents the
web.xml file that must be included
in the WEB-INF directory of every web module. The IDE creates this
file for you when you use the New Web Module wizard or you use the Convert Filesystem
into Web Module tool.
The purpose of the deployment descriptor is to convey the following information
to the web container. Note that the IDE creates servlet declarations, servlet
mappings, filter definitions, and filter mappings when you use the New wizard
to create servlets and filters.
- Servlet context init Parameters
- Session configuration
- Servlet declarations and mappings
- Application lifecycle listener classes
- Filter definitions and filter mappings
- MIME type mappings
- Welcome file list
- Error pages
- Locale and encoding mappings
- Security information
- jsp-config
- Syntax for looking up JNDI objects
- Syntax for specifying the message destination
- Reference to a web service
The syntax for the deployment descriptor elements is in the following documents:
Working With This Node
If you right-click this node and display the contextual menu, you see a list
of menu items that enable you to work with this node. The following list describes
some of these menu items and provides links to topics that explain more.
- Validate All Pages. Validate the syntax in the web
module's JSP files.
- Execute. Deploy the web module to the default server,
if necessary, and execute the web module's welcome file.
- Run in Debugger. Run the web module in debug mode.
- Export WAR File. Create a WAR file using the Archive specifications
from the deployment descriptor's property sheet.
- View WAR Content.Open
the WAR Contents window to see what the the contents of a WAR package would
be for the web module.
- Add JSP Tag Library. Add a tag library from
the filesystem
or from the tag library repository.
Legal Notices