The iterator tag has a status attribute that exposes a IteratorStatus object which can give you the current index as follows: <ww:iterator value="someCollection" status="'myItStatus'"> <!--print the current index--> <ww:property value="myItStatus/index"/> </ww:iterator>
Geoff > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Rachel McConnell > Sent: 06 March 2003 19:08 > To: [EMAIL PROTECTED] > Subject: [OS-webwork] getting at the index value in webwork:iterator > > > 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