You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rick Mangi <ri...@spafinder.com> on 2007/01/03 22:54:16 UTC
RE: Tiles putList question
That worked like a charm. Thank you Antonio!
Rick
-----Original Message-----
From: Antonio Petrelli [mailto:apetrelli@apache.org]
Sent: Sunday, December 31, 2006 6:43 AM
To: Struts Users Mailing List
Subject: Re: Tiles putList question
Rick Mangi ha scritto:
> Hello list,
>
> I am trying to use a putList in tiles to insert a list of pre-defined
> tile definitions.
>
> <definition name="spa.page" path="/tiles/spaPage.jsp">
> <put name="body.content"
> value="/tiles/spaDetails/displayTile.jsp" />
>
> <putList name="header.content">
> <add value="details.metatags" type="definition"
> />
> <add value="details.headerScript"
> type="definition" />
> </putList>
> </definition>
>
I will try to adapt a code posted by Eric Rank in a later message
(thanks Eric):
<tiles:useAttribute name="header.content" />
<c:forEach items="${myPutList}" var="item">
<tiles:insert definition="${item}" />
</c:forEach>
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org