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.

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


  2. Select a name and code for the JSP component and click Next.
  3. Select the default template of the JSP file object. 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. All templates are available in the Profile/FileObject/Criteria/JSP/templates category of the Java object language.
  4. Click Next to go to the final page of the wizard, where you can select Create symbol to create a component symbol in the specified diagram.

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

  • A JSP component and a file object with an extension .JSP are created and visible in the Browser. The file object is named after the original default component name to preserve coherence

  • If you open the property sheet of the file object, you can see that the Artifact property is selected

    For more information on artifact file objects, see File Object Properties.

  • You can edit the file object directly in the internal editor of PowerDesigner, if its extension corresponds to an extension defined in the Editors page of the General Options dialog box, and if the <internal> keyword is defined in the Editor Name and Editor Command columns for this extension