Bug 31047 - c:forEach - step does not accept negative values
Summary: c:forEach - step does not accept negative values
Status: RESOLVED WONTFIX
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.1.0
Hardware: All other
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 15:00 UTC by Seth Fitzsimmons
Modified: 2006-12-13 12:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seth Fitzsimmons 2004-09-03 15:00:27 UTC
<c:forEach begin="5" end="1" step="-1" var="x">...</c:forEach> complains about
step being <= 0.

How should countdowns be handled if step cannot be negative?
Comment 1 Kris Schneider 2004-09-03 15:17:40 UTC
Marked as an enhancement since the JSTL 1.1 Spec. states:

Constraints
- If specified, begin must be >= 0.
- If end is specified and it is less than begin, the loop is simply not executed.
- If specified, step must be >= 1
Comment 2 Henri Yandell 2006-12-13 12:54:20 UTC
I've reported this to the 1.2 RI:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=1740

We won't be fixing it unless the spec changes.