Bug 6545

Summary: attributes attribute of search tag does not work for multiple entries
Product: Taglibs Reporter: Eric Chambers <eric.chambers>
Component: JNDI TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: 1.0B1   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Eric Chambers 2002-02-19 15:46:06 UTC
If you enter multiple attributes to be returned by the search tag using 
the 'attributes' attribute you only get back the last attribute in the list.
This is simply because a variable in the doStart method does not get set back 
to zero. There are two while loops the first of which determines the size of 
the array to be created which will hold the attribute values. The second while 
loop populates the array. There are a few int variables that are used to 
control this functionality including 'int i' and 'int count'. After the first 
while loop 'count' gets reset to zero but 'i' does not. If 'i' also gets set to 
zero it works just fine.
Comment 1 Glenn Nielsen 2002-04-06 21:36:37 UTC
Thanks for reporting this.  The bug fix you suggested has been implemented.