You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by holod <se...@gmail.com> on 2008/07/28 10:28:07 UTC

Re: Iterator index: how to index html elements? count works, but status doesn't

<tr id="attachedMainDocRow<s:property value="#document.count"/>">

works fine. It just starts from 1, not from 0
Why? I can't understand what has happened to index.
count is not so bad, thanks for you help and cooperation!
-- 
View this message in context: http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18686074.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Iterator index: how to index html elements? count works, but status doesn't

Posted by Jim Kiley <jh...@summa-tech.com>.
The version of IteratorStatus found in version 2.0.11 of the docs [1] has a
getIndex() method; has it subsequently been vaporized?

[1]
http://struts.apache.org/2.0.11/struts2-core/apidocs/index.html?org/apache/struts2/views/jsp/IteratorStatus.html

jk

On Mon, Jul 28, 2008 at 4:28 AM, holod <se...@gmail.com> wrote:

>
> <tr id="attachedMainDocRow<s:property value="#document.count"/>">
>
> works fine. It just starts from 1, not from 0
> Why? I can't understand what has happened to index.
> count is not so bad, thanks for you help and cooperation!
> --
> View this message in context:
> http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18686074.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com