struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wesley Wannemacher" <W...@doubleatrailer.com>
Subject RE: [S2] Iterator Tag and Status Count
Date Wed, 26 Sep 2007 20:25:10 GMT
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-----
> From: Hoying, Ken [mailto:Ken_Hoying@PremierInc.com] 
> 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 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 
> its usage correctly?
> 
> Thank you!
> Ken
> 
> 
> 
> -----------------------------------------
> ***Note:The information contained in this message may be 
> privileged and confidential and protected from disclosure. If 
> the reader of this message is not the intended recipient, or 
> an employee or agent responsible for delivering this message 
> to the intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this communication 
> is strictly prohibited. If you have received this 
> communication in error, please notify the Sender immediately 
> by replying to the message and deleting it from your 
> computer. Thank you. Premier Inc.  
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message