Design-time page templates and dynamic page templates
You can create two kinds of Web page templates: design-time templates and dynamic templates.
Design-Time page templates have the following characteristics:
You can use nested page templates to create multiple templates with a consistent look and feel
- Pages that you create using this type of template are created immediately.
- Changes that you make to this template are immediately reflected in the pages that are based on the template
- These templates allow you to create both HTML and JSP pages.
Dynamic Page templates differ from design-time page templates in the following ways:
- Dynamic page templates use Struts-Tiles technology to generate pages on the web server at run-time. (Note that the pages don't actually contain the template content except in the generated files).
- You cannot create HTML templates using dynamic page templates
- You can insert JSP fragments into your template when you edit the template in Page Designer. That is, each content area is filled with a JSP fragment file that gives page specific content to the page. This enables you to easily keep page content and page layout separate
- You can configure the content areas that are defined by the template when you edit it in Page Designer. (To do this from within Page Designer, select
Page | Page Template | Configure content areas of dynamic page template )
- You can register a page you created from dynamic page templates as another page template. This enables you to override portions of content areas when you create a new page from the template. (To do this from within Page Designer, select
File | Page Template | Register as Dynamic Page
Related tasks
Laying out a page template with tables
Generating Web pages from page templates
Applying or replacing page templates to Web pages
Applying a page template to a Web site
Adding content to a page template
Creating a nested page template