tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lutz Horn <lutz.h...@FIZ-Karlsruhe.DE>
Subject Re: Literal expressions in <c:set> tag
Date Wed, 24 Sep 2003 12:13:15 GMT
Hi,

Andrew Chapman wrote:
> <c:set var="formRow">
>       <input type="text" name="address${rowIndex}"/>
> </c:set>
> 
> <c:forEach begin="1" end="3" varStatus="status">
>       <c:set var="rowIndex" value="${status.index}"/>
>       <c:out ${formRow} escapeXml="false"/>
> </c:forEach>

Why don't you just write:

<c:forEach begin="1" end="3" varStatus="status">
   <input type="text" name="<c:out value="${status.index}">"/>
</c:forEach>

Lutz

Mime
View raw message