Home

 

Page templates

A page template contains common areas that you want to appear on all pages, and content areas that are intended to be unique on each page. They are used to provide a common look and feel for a Web project.

The Page Template File creation wizard is used to create these files. After being created, the file can be modified in the Page Designer. The page templates are stored as *.htpl files for HTML pages and *.jtpl files for JSP pages. Changes to the page template are reflected in pages that use that template. Templates can be applied to individual pages, groups of pages, or applied to an entire Web project. Areas can be marked as read-only, meaning that the Page Designer will not allow the user to modify those areas.

When creating a new page template, the user is prompted to choose if the template is to be a dynamic page template or a design time template:

Dynamic page templates use Struts-Tiles technology to generate pages on the Web server.

Design time templates allow changes to be made and applied to the template at design or build time, but after an application is deployed and running, the page template cannot be changed. Design time templates do not rely on any technologies other than the standard Java EE servlet libraries.
ibm.com/redbooks