I added a setVarStatus() method, which just invokes the setIndexVar() method, but the varStatus is consistent with the JSTL syntax, so it would be familiar to those who use JSTL a lot.

No biggy, take it or leave it :-)

- Robert
Index: ForEachTag.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core/ForEachTag.java,v
retrieving revision 1.20
diff -u -r1.20 ForEachTag.java
--- ForEachTag.java     24 Jan 2003 22:53:34 -0000      1.20
+++ ForEachTag.java     26 Feb 2003 16:15:48 -0000
@@ -220,4 +220,14 @@
     public void setStep(int step) {
         this.step = step;
     }
+    
+    /**
+     * Sets the variable name to export the current index to. 
+     * This does the same thing as #setIndexVar(), but is consistent
+     * with the <a href="http://java.sun.com/products/jsp/jstl/";>JSTL</a>
+     * syntax.
+     */
+    public void setVarStatus(String var) {
+            setIndexVar( var );
+    }
 }

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

Reply via email to