On Nov 18, 2005, at 3:03 PM, Garner, Shawn wrote:

When I change <template:get name='header' ><%@ include
file="header.jsp"%></template:get>

to tiles it says it can not have content in a body. I would like to default
the header to this if they don't supply a header.

You probably need to include this in your Tiles definition. The best way to do this is to include it in a tiles-defs.xml file:

<definition name="something" template="/something.jsp">
    <put name="header" value="/header.jsp"/>
</definition>

Then inside your template file (something.jsp) you'd use the Tiles insert tag:

<tiles:insert name="header"/>

See the User Guide for more information on the configuration:
http://struts.apache.org/struts-tiles/userGuide.html


<tiles:put name='header' type='page' value='header.jsp'>
<tiles:put name='footer' type='page' value='blankFooter.jsp"/>

You probably need to use <tiles:insert> for these. I think the <put> tag just adds an attribute to the definition.

Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to