Thanks that's what I needed.
I'am sure it's a powerful language but the success of a language is also how
easy it is to find what you need, the documentation is poor of examples and
it's hard to someone that's new with this type of language.
Hope in your collaboration in future. Thanks.


DNewfield wrote:
> 
> TonyD wrote:
>> Well I found out what index is (index=count +1)
> 
> Bzzt.  Index is a zero-based iteration count, count is a one-based 
> iteration count, so index+1=count.
> 
>> but a need something that tells me how much iterations are there
>> before reaching the end of  interation.
> 
> That has nothing to do with the iterator.  It's a simple number you want 
> added to the output of the jsp.  We tend to do that with the s:property
> tag.
> 
> So if your iterator is
> <s:iterator value="%{foo}" status="iterStatus">...</s:iterator>
> what you're looking for is just
> <s:property value="%{foo.size}"/>
> 
> Read up on ognl.  It's a very powerful language that you're using 
> whether you realize it or not.
> 
> -Dale
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-checkbox-label-value-in-a-iterator-tf4035305.html#a11516246
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to