Return-Path: Delivered-To: apmail-jakarta-taglibs-dev-archive@apache.org Received: (qmail 48462 invoked from network); 3 May 2002 02:34:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 May 2002 02:34:11 -0000 Received: (qmail 13718 invoked by uid 97); 3 May 2002 02:34:18 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-dev@nagoya.betaversion.org Received: (qmail 13613 invoked by alias); 3 May 2002 02:34:18 -0000 Delivered-To: jakarta-archive-taglibs-dev@jakarta.apache.org Received: (qmail 13593 invoked by uid 97); 3 May 2002 02:34:17 -0000 Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Developers List" Reply-To: "Tag Libraries Developers List" Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 13579 invoked by alias); 3 May 2002 02:34:16 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 3 May 2002 02:34:03 -0000 Message-ID: <20020503023403.37551.qmail@icarus.apache.org> From: shawn@apache.org To: jakarta-taglibs-cvs@apache.org Subject: cvs commit: jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core LoopTag.java LoopTagSupport.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N shawn 02/05/02 19:34:03 Modified: standard/src/javax/servlet/jsp/jstl/core LoopTag.java LoopTagSupport.java Log: getIteratorStatus -> getLoopStatus [Bug 8759] Revision Changes Path 1.2 +1 -1 jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTag.java Index: LoopTag.java =================================================================== RCS file: /home/cvs/jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTag.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LoopTag.java 31 Jan 2002 17:37:40 -0000 1.1 +++ LoopTag.java 3 May 2002 02:34:03 -0000 1.2 @@ -89,5 +89,5 @@ * * @return the LoopTagStatus for the current LoopTag */ - public LoopTagStatus getIteratorStatus(); + public LoopTagStatus getLoopStatus(); } 1.7 +7 -7 jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTagSupport.java Index: LoopTagSupport.java =================================================================== RCS file: /home/cvs/jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTagSupport.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- LoopTagSupport.java 1 May 2002 17:22:45 -0000 1.6 +++ LoopTagSupport.java 3 May 2002 02:34:03 -0000 1.7 @@ -157,7 +157,7 @@ * Our 'internal index' begins at 0 and increases by 'step' each * round; this is arbitrary, but it seemed a simple way of keeping * track of the information we need. To avoid computing - * getIteratorStatus().getCount() by dividing index / step, we keep + * getLoopStatus().getCount() by dividing index / step, we keep * a separate 'count' and increment it by 1 each round (as a minor * performance improvement). */ @@ -363,7 +363,7 @@ * implementation of subclasses that are happy with reasonable default * behavior.) */ - public LoopTagStatus getIteratorStatus() { + public LoopTagStatus getLoopStatus() { // local implementation with reasonable default behavior class Status implements LoopTagStatus { @@ -379,7 +379,7 @@ * Access the item through getCurrent() instead of just * returning the item our containing class stores. This * should allow a subclass of LoopTagSupport to override - * getCurrent() without having to rewrite getIteratorStatus() too. + * getCurrent() without having to rewrite getLoopStatus() too. */ return (LoopTagSupport.this.getCurrent()); } @@ -544,9 +544,9 @@ * Also, just to be defensive, we handle the case of a null * 'status' object as well. * - * We call getCurrent() and getIteratorStatus() (instead of just using + * We call getCurrent() and getLoopStatus() (instead of just using * 'item' and 'status') to bridge to subclasses correctly. - * A subclass can override getCurrent() or getIteratorStatus() but still + * A subclass can override getCurrent() or getLoopStatus() but still * depend on our doStartTag() and doAfterBody(), which call this * method (exposeVariables()), to expose 'item' and 'status' * correctly. @@ -559,10 +559,10 @@ pageContext.setAttribute(itemId, getCurrent()); } if (statusId != null) { - if (getIteratorStatus() == null) + if (getLoopStatus() == null) pageContext.removeAttribute(statusId, PageContext.PAGE_SCOPE); else - pageContext.setAttribute(statusId, getIteratorStatus()); + pageContext.setAttribute(statusId, getLoopStatus()); } } -- To unsubscribe, e-mail: For additional commands, e-mail: