You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Petrelli <ap...@apache.org> on 2006/10/18 09:19:03 UTC

[tiles] Re: Tiles "put" page using tiles:insert

Irv Salisbury ha scritto:
> First, is this the appropriate list for tiles questions?  If not, 
> sorry, and
> can someone tell me a better one...

Yes it is! But just a note: next time put a "[tiles]" prefix in your 
subject field.

> I have the following two defintions in my tiles-def.xml file:
>
>    <definition name=".tiles.basePage" path="/pages/tiles/basePage.jsp">
>            <put name="additionalHead" value="/pages/tiles/empty.jsp" />
>            <put name="body"   value="/pages/tiles/empty.jsp" />
>            <put name="footer"   value="/pages/tiles/footer.jsp" />
>            <put name="pageName" value="This will be your page name"/>
>    </definition>
>
>    <definition name=".tiles.index" extends=".tiles.basePage">
>        <put name="pageName" value="index"/>
>        <put name="additionalHead" value="/pages/indexHead.jsp" />
>        <put name="body" value="/pages/indexBody.jsp"/>
>    </definition>
>
> In the first definition, I have a footer attribute I am using.  However,
> inside the /pages/indexBody.jsp of the second definition (which 
> extends the
> first) I want to do a <tiles:insert attribute="footer"/>  It is 
> complaining
> that it can't find it.

First of all you can <put> attributes only in the first level. See this 
thread:
http://www.mail-archive.com/user%40struts.apache.org/msg51618.html
Anyway, why don't you put <tiles:insert attribute="footer" /> in your 
basePage.jsp?

Ciao
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org