|
The code <tiles:insert
page="/tiles/template.jsp" flush="true">
specify the tiles layout page to be used. We
have set the flush attribute to true, this makes
tile file to be written to browser before
the rest of the page. To specify the title of
page <tiles:put name="title"
type="string" value="Welcome" /> is used.
The following code is used to insert actual
pages in the template.:
<tiles:put
name="header" value="/tiles/top.jsp" />
<tiles:put name="menu"
value="/tiles/left.jsp" />
<tiles:put name="body"
value="/tiles/content.jsp" />
<tiles:put name="bottom"
value="/tiles/bottom.jsp" />
The content.jsp wil be inserted in the
layout's body region and the bottom.jsp will be
inserted in bottom region.The top.jsp will be
inserted in the layout's header of the region. The
left.jsp will be inserted in layout's menu
region. .
|