struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Mangi" <rick.ma...@spafinder.com>
Subject RE: Tiles putList question
Date Wed, 03 Jan 2007 21:54:16 GMT
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


Mime
View raw message