,ch14.9433 Page 441 Monday, February 14, 2005 12:55 PM
Table 14 1. Components of a page layout
Text, specific to the body content, displayed in the browser
Browser title bar and within the
title as well as the header
Contains the page title as header text
Top, from left to right margin
Contains a set of links for pages that you can display as the
Primary content of the page, varies for every page
Centered below the header and
between the sidebars
News and events; this content will be the same on every
Contains legalese and related information, displayed in a
Bottom, from left to right margin
You can think of the entire page as a single component that contains these compo
nents laid out in a particular fashion. You can define this set of components in a
Tiles definition file (tiles defs.xml), as shown in Example 14 1.
Example 14 1. Tiles definitions file
" //Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
attribute of the
element specifies the location of the JSP page
that lays out the components. Each
element defines a page component, and the
attribute specifies the contents of that component.
If you have prototyped the layout using an HTML or JSP page, you can transform it
into a Tiles layout page. Example 14 2 (sample.html) shows the static source HTML
from Figure 14 1.
Example 14 2. Prototype HTML layout page
Reusing a Common Page Layout with Tiles | 441
This is the Title of the Book, eMatter Edition
Copyright 2005 O'Reilly & Associates, Inc. All rights reserved.