Generating Servlets

The generation process retrieves all classes used by the servlet components to generate the 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, then select the objects you need in the different tabbed pages.


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


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

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


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

    You must beforehand set your environment variables from Tools > General Options > Variables 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.