Chapter 14 Working with Java


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.

Steps To generate JSPs:

  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 tab to display the Selection page.
  4. Select the objects you need in the different tabbed pages.


    For more information on the selection page, see section Selecting objects to generate, in chapter Generating for a Language.
  5. Click Apply.
  6. Click the Options tab to display the Options page.
  7. Specify your generation options in the Options page.


    For more information on the generation options, see section Defining generation options, in chapter Generating for a Language.
  8. Click Apply.
  9. Click the Tasks tab to display the Tasks page.
  10. Select the commands you want to perform during generation in the Tasks page.


    For more information on the generation tasks, see section Defining generation tasks, in chapter Generating for a Language.

    You must beforehand set the environment variables from General Options→Variables in order to activate them in this page.

    For more information on how to set these variables, see section Defining environment variables, in chapter Using the PowerDesigner interface, in the General Features Guide .
  11. Click OK.

    A progress box appears, followed by a Result list. You can use the Edit button in the Result list to edit the generated files individually.
  12. Click Close.

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

 


Copyright (C) 2005. Sybase Inc. All rights reserved.