tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: forEach problem
Date Tue, 02 Sep 2003 21:07:44 GMT
Great. That's sorted it. Thanks
Adam

On 09/02/2003 10:15 PM Karr, David wrote:
> 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>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


Mime
View raw message