Hi Rachel,

Yes, use the status attribute of the iterator taglib and you can reference the current index value while looping.

-a

Rachel McConnell wrote:

Hi all,

I need to access the iterator index for a list i'm iterating over, using
the webwork jsp taglib.  Is there a way to access the current index
value from within the iterator tag?  Alternately, if i put my list into
the page context, i can iterate with raw java & a for(int i=0; ... )
loop, but this seems very inelegant.

Suggestions?

---
Rachel McConnell
Principal
Indigo Egg, Inc.
www.indigoegg.com





-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





-- to your success!

___________________________
andrew lombardi
president
mystic coders
___________________________
http://www.mysticcoders.com
949 . 515 . 8840  x 6

=========================================================================
This message is for the named person's use only. You must not, directly or
indirectly, use, disclose, distribute, print, or copy any part of this
message if you are not the intended recipient.
=========================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to