Creating new JSP files from a page template

When you create new JSP files, you can create them from a page template. You can also apply the page template file to any new input and output JSP file that the Web Interaction wizard generates for you. (See Generating the JSP files for a Web interaction for information about applying a template file to the JSP files that the Web Interaction wizard generates.)

The design and content of the page template file, as well as the styles that are defined in any style sheets that it uses, are automatically applied to the new JSP files.

To create a new JSP file with a page template:

  1. Right-click the WebContent folder and select New > JSP File and enter a name for the file in the File Name field.
  2. Select the Create from page template check box and click Next to go to the Page Template File Selection page.
  3. Select the User-Defined Page Template radio button.
  4. In the Thumbnail area on the page, select the template file you created and click Finish. The new JSP file is created and opens in the editor view. Any content that you defined in the template file appears in the JSP file, and the content area from the template also appears in the JSP file. You use this content area to add text, a form, and iSeries Web components or standard HTML components that are specific to this page.

    The new file also reflects any style sheet changes that you made.