RE: [S2] Iterator Tag and Status Count

2007-09-27 Thread Dave Newton
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote: > Never occurred to me that it was a 1 based index. It's not, although the difference is semantic. "index" is the index. "count" is the number of iteration you're currently on; you'll never be in the zeroth iteration because the iteration starts immedi

RE: [S2] Iterator Tag and Status Count

2007-09-27 Thread Hoying, Ken
to all who responded! -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 26, 2007 4:37 PM To: Struts Users Mailing List Subject: Re: [S2] Iterator Tag and Status Count I think count is a one based position in the iteration where as index is zero based

Re: [S2] Iterator Tag and Status Count

2007-09-26 Thread Dave Newton
--- Chris Pratt wrote: > It's too bad there is no JavaDoc information on the > methods, since that could easily clear up the > confusion. Please file a JIRA for issues, including documentation (or lack thereof). d. - To unsub

Re: [S2] Iterator Tag and Status Count

2007-09-26 Thread Chris Pratt
I think count is a one based position in the iteration where as index is zero based. But there is almost no information in the documentation. The tag library documentation simply says that a InteratorStatus is pushed on the Value Stack. And the JavaDocs for IteratorStatus has one line of "useful

RE: [S2] Iterator Tag and Status Count

2007-09-26 Thread Wesley Wannemacher
es > -Original Message- > From: Hoying, Ken [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 26, 2007 4:02 PM > To: user@struts.apache.org > Subject: [S2] Iterator Tag and Status Count > > I believe that I have come across a bug in the iterator tag. > It a

[S2] Iterator Tag and Status Count

2007-09-26 Thread Hoying, Ken
I believe that I have come across a bug in the iterator tag. It appears that the count value for the status object is returning (index + 1) rather than the size of the collection being iterated over. Has anyone else seen this behavior? Is this the correct behavior and I am just not interepreting