Chapter 14 Working with Java


Creating a JSP with the wizard

You can create a JSP with the wizard that will guide you through the creation of the component. The wizard is invoked from a class diagram. It is only available if the language is Java.

You can either create a JSP without selecting any file object, or select a file object beforehand and start the wizard from the Tools menu.

You can also create several JSP of the same type by selecting several file objects at the same time. The wizard will automatically create one JSP per file object: the file objects you have selected in the class diagram become .JSP files.

The wizard for creation of a JSP lets you define the following parameters:

Wizard page Description
Name Name of the JSP component
Code Code of the JSP component
TemplateContent Allows you to choose the default template of the JSP file object. The TemplateContent is an extended attribute located in the Profile/Component/Criteria/J2EE-JSP category of the Java object language. If you do not modify the content of the file object, the default content remains (see the Contents page of the file object property sheet).
All templates are available in the Profile/FileObject/Criteria/JSP/templates category of the Java object language
Create symbol Creates a component symbol in the diagram specified beside the Create symbol In check box. If a component diagram already exists, you can select one from the dropdown listbox. You can also display the diagram properties by selecting the Properties tool

Steps To create a JSP with the wizard:

  1. Select Tools→Create JSP from a class diagram.

    The Java Server Page Wizard dialog box appears.
  2. Select a name and code for the JSP component and click Next.
  3. Select a JSP template and click Next.
  4. At the end of the wizard, you have to define the creation of symbols.

When you have finished using the wizard, the following actions are executed:

For more information on artifact file objects, see the "File object properties in a deployment diagram" section in the "Building Implementation Diagrams" chapter.

 


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