Site Template

From LongJump Support Wiki
Revision as of 17:39, 9 September 2010 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A Site Template is a JSP page that wraps every other page on the site, so headings and borders can be defined once and applied everywhere.

The Site Template follows this pattern:

<!-- Define HTML headers and borders common to all pages -->

<!-- Open the HTML div, iframe, or frame that holds page content -->

  <!-- Include the content of the page being visited -->
  <%@taglib prefix="lj" uri="/LJTagLib"%>
  <lj:include file="${_page}" />  

<!-- Close the content pane--> 
 
<!-- Define HTML footers common to all pages -->

The include directive causes the content of the page being visited to be included in the template, at the point where the directive is specified.