tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandra De Leon <alejan...@swordfish.com.uy>
Subject forEach Problem
Date Mon, 20 Jan 2003 19:43:36 GMT
I'm having a problem with foreach tag using begin and end attributes.
The code I have is:
<c:forEach begin="${erliestYear}" end="${latestYear}" varStatus="status">
         <option value="<c:out value='${status.index}'/>"<c:if
test="${status.index == statisticsForm.toYear}"><c:out value="
selected"/></c:if>><c:out value='${status.index}'/></option>
</c:forEach>

and when earliestYear it's equals to lastYear It doesn't display the option
tag.
I suppose that it should be like in Java that runs the loop once.

This is a bug or it's not possible to use a <foreach> only to run once.

Thanks!

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message