struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Nascimento" <>
Subject recursive tiles
Date Mon, 01 Dec 2003 05:41:42 GMT

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 name="" extends="mainTemplate">
   <put name="body" value="/foo.jsp" />

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....

<tiles:get name="subBody1"/>
<tiles:get name="subBody2"/>

I tried some things here, but I always get a white screen in the body
region. (and I am not forgetting taglib in the beginning of jsp file).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message