In this file we are
defining different components to the "plugin" tag.
The following is th code for the same:
<definition name="Tiles.Example"
page="/tiles/template.jsp">
<put name="title" type="string"
value="Welcome" />
<put name="header" value="/tiles/top.jsp"
/>
<put name="menu" value="/tiles/left.jsp"
/>
<put name="body" value="/tiles/content.jsp"
/>
<put name="bottom" value="/tiles/bottom.jsp"
/>
</definition>
The page attribute
define the template file to be used and the put
tag specifies the different components to
"plugin".The name of the definition is Tiles.Example,we will use this in the
struts-config.xml (While creating forwards in
struts-config.xml file) file Your tiles-defs.xml should looks like:
|