The Web Deployment Descriptor editor

The Web deployment descriptor editor lets you specify deployment information for modules created in the Web development environment. The information appears in the web.xml file. Note that you use the Web deployment descriptor to set deployment descriptor attributes. You do not use it to manipulate Web resource content.

The web.xml file for a Web project provides information necessary for deploying a Web application module. It is used in building a WAR file from a project. Whenever you create a new Web project, a minimal web.xml file is automatically created in WEB-INF under the project's Web content folder.

The Web deployment descriptor editor is dynamic and includes many tabbed pages (views) that represent various properties and settings in the deployment descriptor. For example, you can click the Servlets tab to display the Servlets page, in which you can add or remove servlets and JSPs that are used in the Web application.

The Web deployment descriptor editor includes the following tabbed pages:

Although you can edit web.xml directly, we recommend that you edit the multiple tabbed pages in the Web Deployment Descriptor editor. As you specify deployment information in these tabbed pages, the editor automatically incorporates the appropriate XML tagging in web.xml (or in the appropriate .xmi file).

In addition to the configuration information in the web.xml file, other deployment descriptors in a Web project include the following information:

If you import a WAR file into an existing Web project, you can include the deployment descriptor files included in the WAR file as the Web project's new deployment descriptor. Any specific deployment information already defined in these files is used when deploying the updated Web application.

The web.xml file can be updated automatically to reflect changes to your Web project. For instance, when you use the New Servlet wizard to create a new servlet in a Web project, the wizard places the appropriate servlet entry into the web.xml file.

 

Related tasks

Configuring Web applications using the Web deployment descriptor editor

Working in the Overview page

Working in the Servlets page

Working in the Security page

Working in the References Page

Working in the Extensions Page

Working in the Filters Page

Working in the Pages page

Working in the Variables Page

Working in the WS Binding Page

Working in the WS Extensions Page

Working in the WS Handler page