struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: recursive tiles
Date Mon, 01 Dec 2003 11:41:08 GMT
Hi Felipe,
not quite sure exactly what you want to do - where do you expect 
subbody1 & subbody2 to come from? If you are defining them in your 
tiles-defs.xml then you need to pass them as variables explicitly to 
'body' in your maintemplate:

<tiles:get name="body">
   <put name="subbody1" value="subbody1"/>
</tiles:get>

HTH
Adam

On 12/01/2003 06:41 AM Felipe Nascimento wrote:
> Hi,
> 
> I have the following definition in my tiles-defs.xml:
> <definition name="mainTemplate" path="/mainTemplate.jsp">
>    <put name="title" value="${title}" />
>    <put name="header" value="/components/header.jsp" />
>    <put name="menu" value="/componentes/menu.jsp" />
>    <put name="body" value="" />
>    <put name="footer" value="/componentes/footer.jsp" />
> </definition>
> 
> <definition name="tile.foo" extends="mainTemplate">
>    <put name="body" value="/foo.jsp" />
> </definition>
> 
> In mainTemplate.jsp I have:
> ....
> <tiles:get name="body"/>
> ....
> 
> What I want is to put more variable content in my foo.jsp, the same way I
> put in mainTemplate.jsp
> something like....
> 
> foo.jsp:
> <tiles:get name="subBody1"/>
> <tiles:get name="subBody2"/>



-- 
struts 1.1 + tomcat 5.0.14 + java 1.4.2
Linux 2.4.20 RH9

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


Mime
View raw message