Chapter 14 Working with Java


Generating servlets

The generation process retrieves all classes used by the servlet components to generate the servlets.

Steps To generate servlets:

  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 your 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.