tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <David.K...@wamu.net>
Subject RE: forEach problem
Date Tue, 02 Sep 2003 20:15:43 GMT
If you're using the non-RT version of the tag library, then you can't
use expression scriptlets for attribute values.  You'll have to change
your initial "c:set" to this (untested):

<c:set var="sectionListKey">
 <%=Constants4Lists.SECTION_LIST %>
</c:set>

> -----Original Message-----
> From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] 
> 
> Hi All,
> I'm trying to swop a struts logic:iterate tag for a c:forEach 
> and I have 
> run into the problem that I get no output. I get no errors 
> either. There 
> is obviously something wrong with my forEach tag.
> 
> Here is what I have:
> 
> <c:set var="sectionListKey" 
> value="<%=Constants4Lists.SECTION_LIST %>" />
> <c:forEach var="idata" items="${requestScope[sectionListKey]}">
>        <blacksail:row oddStyleClass="odd" evenStyleClass="even">
>          <td class="listTitle">
>            <c:out value="${idata.map.title}" default="error"/>
>          </td>
>        </blacksail:row>
> </c:forEach>

Mime
View raw message