have you try ti use indexId? <logic:iterate id="results" name="nameSearchResults" scope="session" indexId="inx" type="dhs.vcm.vis.form.NameSearchResultsForm">
indexId = The name of a page scope JSP bean that will contain the current index of the collection on each iteration. I don't have a sample code, but I saw it before posted in the list Thx Leo -----Original Message----- From: Struts Developer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 3:13 PM To: [EMAIL PROTECTED] Subject: Getting index inside iterate / pager tag All - I am trying to get the index of the current row inside an iterate tag so that a link on that row properly identifies itself to the subsequent action class. However, all I get is a Class Not Found error pointing to the collection I am iterating. Here is my code: <logic:iterate id="results" name="nameSearchResults" scope="session" type="dhs.vcm.vis.form.NameSearchResultsForm"> <pg:item> <dhshtml:row oddColor="#9999ff" evenColor="#ccccff"> <td> </td> <td> <html:link page='<%= "NameSearch/Details?selectedClient=" + nameSearchResults.getIndex() %>' > <bean:write name="results" property="clientName"/> </html:link> </td> <td><bean:write name="results" property="clientAddress"/></td> <td><bean:write name="results" property="clientCity"/></td> <td><bean:write name="results" property="clientState"/></td> <td><bean:write name="results" property="clientBirthdate"/></td> <td><bean:write name="results" property="clientSSN"/></td> </dhshtml:row> </pg:item> </logic:iterate> I have tried using both "nameSearchResults" and "results" followed by the getIndex() call. What am I screwing up? TIA, /\/\ark _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>