Setting web.xml Properties

Note that this feature might not be included in your version of the IDE. If it is not available, you can edit the deployment descriptor (web.xml) file using the editor of your choice. For more information, see Java Servlet 2.3 Specification available at http://java.sun.com/products/servlet.

In its native state, the deployment descriptor takes the form of a plain text file, called web.xml, written in Extensible Markup Language, that is, XML, syntax. The deployment descriptor identifies the elements belonging to a particular web module, such as servlets and JSP files. It also provides configuration information needed to deploy the web module to a web server.

The web.xml property sheet makes it easy to edit the various elements that make up a deployment descriptor. For information about the properties that appear on the panes of the web.xml property sheet, click the appropriate category:

You can edit the web.xml file directly by double-clicking the web.xml icon. When you save your changes, the IDE automatically parses the file and displays any errors in the Output window on the XML Parser pane.

You can also edit the web.xml file using an external text editor.

Troubleshooting

If the port number of the server changes, the changes to the deployment descriptor do not take effect until you restart the web module.


Legal Notices