Generating JSP Web Deployment Descriptor

The Web deployment descriptor is an XML file, called web.XML. It is generated in the WEB-INF directory and is independent from the application server.

The Web application deployment descriptor is generated per package. A WAR command available in the Tasks page of the Generation dialog box allows you to build a Web Archive that contains the Web deployment descriptor, in addition to all classes and file objects referenced by JSP components. At the model level, an EAR command is also provided to group all WAR and JAR files generated for a given model inside a single enterprise archive. The EAR contains an additional deployment descriptor generated per model that is called application.XML.

The Web deployment descriptor is available from the Preview page of the package, or the model property sheet.

  1. Select Language > Generate Java Code to display the Generation dialog box.
  2. Select or browse to a directory that will contain the generated files.
  3. Click the Selection, then select the objects you need in the different tabbed pages.


  4. Click Apply.
  5. Click the Options tab, then specify your generation options in the Options page.


    For more information on the generation options, see Generating Java Files.

  6. Click Apply.
  7. Click the Tasks tab to display, then select the commands you want to perform during generation in the Tasks page.


    For more information on the generation tasks, see Generating Java Files.

    You must beforehand set the environment variables from the Variabes tab of the General Options diaog box in order to activate them in this page.

    For more information on how to set these variables, see Core Features Guide > The PowerDesigner Interface > Customizing Your Modeling Environment > General Options > Defining Environment Variables.

  8. Click OK.

    A progress box is displayed, followed by a Result list. You can use the Edit button in the Result list to edit the generated files individually.

  9. Click Close.

    The web.XML file is created in the WEB-INF directory and all files are generated in the generation directory.