Show TOC

 Loading a Web ArchiveLocate this document in the navigation structure

Use

Use this procedure to add a Web archive to your DLP project. In this way, you can edit its archive deployment descriptors.

Procedure
  1. In your DLP project, choose the J2EE Components tab.
  2. Choose Start of the navigation path J2EE Components Next navigation step Add Web End of the navigation path. The Load WAR dialog box appears. Type a name for the archive.
    Note

    Use unique WAR names in a project.

  3. Enter a display name for the Web archive in the Archive Name field.
  4.  
    If You Want To Then

    Create a new WEB archive

    Check the Create New checkbox.

    Load an existing Web archive

    Check the Load Existing checkbox. You also have to select from the file system the deployment descriptor of the WAR in the web.xml File field.

  5. In the Files Directory field, enter the directory of the class files to be included in the WAR. You should point to the parent directory of the directory from which the project path begins. You can specify this directory later. For more details, see Managing Files and Directories
    Note

    See J2EE Web Application for more information about the directory structure of the Web archive files.

  6. To close the Load WAR dialog box, choose OK.
Result

The Web archive appears as a node at the J2EE Components tab. If you have added an existing Web archive, the components described in the deployment descriptor will appear too.

You can remove or add to the archive new or existing components. For more information, see Web Component Addition.