Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to iterate forEach in reverse order

843840Aug 6 2008 — edited Aug 6 2008
I want to iterate from a bigger value to a smaller. Is it possible?

If yes, how?

i tried this, but not success
<c:forEach var="i" begin="5" end="0">
              <c:set var="i" value="${i-1}" />
              <c:out value="${i}" />
          </c:forEach>
Edited by: cavern on Aug 6, 2008 5:05 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2008
Added on Aug 6 2008
2 comments
843 views