Bug 6545 - attributes attribute of search tag does not work for multiple entries
Summary: attributes attribute of search tag does not work for multiple entries
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: JNDI Taglib (show other bugs)
Version: 1.0B1
Hardware: PC All
: P3 normal with 1 vote (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-19 15:46 UTC by Eric Chambers
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

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