jstrachan    2002/10/12 05:25:23

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/core
                        ForEachTag.java
  Log:
  patched bug that <j:forEach var="i" begin="1" end="10"> wasn't running 10 times like 
the JSTL spec says it should. Basically the last i="10" loop wasn't running
  
  Revision  Changes    Path
  1.16      +6 -6      
jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/ForEachTag.java
  
  Index: ForEachTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/core/ForEachTag.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ForEachTag.java   26 Jun 2002 14:50:43 -0000      1.15
  +++ ForEachTag.java   12 Oct 2002 12:25:23 -0000      1.16
  @@ -167,7 +167,7 @@
                       varName = indexVar;
                   }
                   
  -                for (index = begin; index < end; index += step ) {
  +                for (index = begin; index <= end; index += step ) {
                   
                       if (varName != null) {
                           Object value = new Integer(index);
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to