struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Nascimento" <felipen...@inf.puc-rio.br>
Subject recursive tiles
Date Mon, 01 Dec 2003 05:41:42 GMT
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"/>

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

Tks
Felipe



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