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:32:41 UTC

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