Page fragments

A page fragment is a partial document that is inserted in another page (similar to an SSI include or a JSP include) in a dynamic Web project. You can add a page fragment to a new or existing page or page template.

If you use a page fragment in a page template, changes in the page fragment are also applied immediately to all the pages created from the template. Page fragment files that are created with the New Web Page wizard have a .jspf or .jsf extension; however, files with .html or .jsp extensions can also be treated as fragments.

Files without explicit <html>, <head>, or <body> tags are treated as fragments, because a fragment cannot stand alone as a Web page. You can edit style sheet information, <meta> tags, and <title> tags for the page fragment; however, the page fragment will be converted to a normal page with <html>, <head> and <body> tags.

Relative links are resolved from the page fragment, not from the parent document.

Related tasks
Editing a page fragment
Creating a Web page template

Feedback