| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html> |
| <head> |
| <link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" /> |
| <title>Configuring Web applications using the Web deployment descriptor editor</title> |
| <script language="JavaScript"> |
| function popup_window( url, id, width, height ) |
| { |
| popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' ); |
| popup.focus(); |
| } |
| </script><script language="JavaScript" src="help/liveHelp.js"></script></head> |
| <body id="twedtwbx"><a name="twedtwbx"><!-- --></a> |
| |
| <h1 class="topictitle1">Configuring Web applications using the Web deployment descriptor editor</h1> |
| <div><div class="skipspace"> <p>When you create a Web project, the New Web Project wizard places |
| |
| a web.xml file in the project's WEB-INF directory. This file is used to specify |
| |
| deployment information for modules created in the Web development environment |
| |
| To open the web.xml file, double-click it (or double-click the Deployment |
| |
| Descriptor icon in the Project Explorer view). The Web deployment descriptor |
| |
| editor opens in the editing pane.</p> |
| <p>It is recommended that you use |
| |
| the tabbed pages (views) to construct the deployment descriptor for your |
| |
| Web application. Even though the Web deployment descriptor editor does provides |
| |
| a source page of the web.xml file (from the <span>Source</span> tab), using the |
| |
| tabbed pages is easier and introduces fewer errors. As you make changes on |
| |
| these tabbed pages, the web.xml file is updated automatically. For instance, |
| |
| when you use the New Servlet wizard to create a servlet in a Web project, |
| |
| the appropriate servlet entry is automatically inserted into the web.xml |
| |
| file.</p> |
| <p>In addition to the configuration information in the web.xml |
| |
| file, you can also use this editor to edit other deployment descriptors in |
| |
| the Web project, including information on bindings and IBM<sup>®</sup> extensions (ibm-web-bnd.xmi |
| |
| and ibm-web-ext.xmi files).</p> |
| <p>To edit the deployment descriptor, click |
| |
| the tabbed pages to locate attributes that you wish to add, edit or remove. |
| |
| In addition, the sections in the Overview page contain links to existing |
| |
| elements of the deployment descriptor. Click the links to open the appropriate |
| |
| editor page to make updates or additions.</p> |
| </div> |
| </div> |
| <div><p><b class="relconceptshd">Related concepts</b><br /> |
| <a href="ccwebxml.html" title="">The Web deployment descriptor editor</a><br /> |
| </p> |
| <p><b class="reltaskshd">Related tasks</b><br /> |
| <a href="twedtwbx1.html" title="">Working in the Overview page</a><br /> |
| <a href="twedtwbx2.html" title="">Working in the Servlets page</a><br /> |
| <a href="twedtwbxf.html" title="">Working in the Filters Page</a><br /> |
| <a href="twedtwbx3.html" title="">Working in the Security page</a><br /> |
| <a href="twedtwbx4.html" title="">Working in the References Page</a><br /> |
| <!-- <a href="twedtwbxwsh.html" title="">Working in the WS Handler page</a><br />--> |
| <a href="twedtwbxp.html" title="">Working in the Pages page</a><br /> |
| <a href="twedtwbxv.html" title="">Working in the Variables Page</a><br /> |
| <!-- <a href="twedtwbxwse.html" title="">Working in the WS Extensions Page</a><br /> |
| <a href="twedtwbxwsb.html" title="">Working in the WS Binding Page</a><br />--> |
| <a href="twedtwbxe.html" title="">Working in the Extensions Page</a><br /> |
| </p> |
| </div><p> |
| (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| </p> |
| </body> |
| </html> |