Bug 1954 - for tag does not corectly initialize the counter in case the handler is reused
Summary: for tag does not corectly initialize the counter in case the handler is reused
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Unknown Taglib (show other bugs)
Version: unspecified
Hardware: PC All
: P1 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-01 08:55 UTC by christian.buchegger
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.