Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Tiles putList question

Antonio Petrelli

2006-12-31

Replies:

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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.