You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Raible <MR...@RESORTQUEST.com> on 2003/09/24 21:52:29 UTC
RE: Inserting tiles dynamically based on a list from tiles-config
.xml [SOLVED]
<c:forEach var="section" items="${sections}" varStatus="status">
<c:import url="${section}"/>
</c:forEach>
-----Original Message-----
From: Matt Raible [mailto:MRaible@RESORTQUEST.com]
Sent: Wednesday, September 24, 2003 1:33 PM
To: 'struts-user@jakarta.apache.org'
Subject: Inserting tiles dynamically based on a list from
tiles-config.xml
I have the following in tiles-config.xml:
<putList name="sections">
<add value="/WEB-INF/pages/sideNav.jsp"/>
<add value="/WEB-INF/pages/weather.jsp"/>
<add value="/WEB-INF/pages/package.jsp"/>
<add value="/WEB-INF/pages/deals.jsp"/>
</putList>
And I want to loop through these in my layout and render them accordingly:
<c:forEach var="section" items="${sectionList}" varStatus="status">
<tiles:insert attribute="${section}"/>
</c:forEach>
Alas, there's no tile-el tag library and this is not possible (yet). Do I
have to use <logic:iterate> to accomplish this?
Thanks,
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org