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 Selecting Java Generation Options.

  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 Selecting Java Generation Tasks.

    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 "Defining environment variables" section in the Models chapter of the Core Features Guide.

  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.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com