Bug 1954

Summary: for tag does not corectly initialize the counter in case the handler is reused
Product: Taglibs Reporter: christian.buchegger
Component: Unknown TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description christian.buchegger 2001-06-01 08:55:10 UTC
As reuse of handlers by the jsp engine are allowed in the JSP 1.1 spec, the 
semantic of the for tag should be defined explicitly. In absence of the  "begin" 
attribute the counter should start with 0. 

This can be accomblished by changing the function doStartTag in
package org.apache.taglibs.utility.lang to

    public int doStartTag() {
        count=0;
	return EVAL_BODY_TAG;
    }
Comment 1 Glenn Nielsen 2002-04-04 20:16:07 UTC
Thanks for reporting this.  The bug has been fixed.