Applying the page template to existing JSP files

You may have created JSP files and added a FORM and iSeries Web components to the file for use in a Web interaction. If you initially created these JSP files without using a page template file, you can apply your page template file to them through the following process:

  1. In the Project Explorer view, select the JSP files that you want to apply the page template.
  2. Right-click and select Page Template > Apply Template. The Apply Page Template wizard opens.
  3. Click the User-Defined Page Template radio button.
  4. Select your template from the Thumbnail area and click Next.
  5. Select a page from the Map all pages based on list that will specify the mapping of the page template. This mapping will be applied to all other pages. Click Next.
  6. The page Map page elements content areas controls how any existing content in the pages is placed inside the content areas of the template. The Page template content areas shows that headarea is mapped to HEAD, and bodyarea is mapped to BODY.
  7. Click Next if you selected more than one JSP file to apply to the page template to. Ensure that all of your JSP files appear and that all are selected. Note that on this page of the wizard, you can validate the application of the template to ensure that using the template will not introduce any markup errors in the pages.
  8. Click Finish to apply the page template to your JSP files.