Bug 13563

Summary: StringTagSupport is broken for tag handler reuse
Product: Taglibs Reporter: Martin Cooper <martinc>
Component: String TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: major    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Martin Cooper 2002-10-12 00:20:16 UTC
The tags in the String taglib which extend StringTagSupport are broken for 
containers which reuse tag handler instances. The problem is in 
StringTagSupport.java, where initAttributes() is being called from within 
doEndTag(). Since the container is not required to reinitialise the attributes 
for a tag handler instance if they have the same values - which they might do 
in a loop, for example - the tag produces incorrect results after the first 

The fix is simply to remove the call to initAttributes() from doEndTag().
Comment 1 Henri Yandell 2002-11-30 21:08:02 UTC
This is fixed in the CVS tree and highlighted on the website [or will be when the website 
changes propagate through].