--- "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
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
--- 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
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
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---
5 matches
Mail list logo