tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandra De Leon <>
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>

and when earliestYear it's equals to lastYear It doesn't display the option
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.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message