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
I think you may be interpreting it's purpose incorrectly. If you are looking for the size of the iterated collection, why not use OGNL to find it - '%{iterableList.size()}' ? >From what I can tell, the 'count' is meant to tell you where you are in the iteration. -Wes > -Original Message---