I was trying to use the getIndex() method improperly, that was giving me the error message.
When I added indexId="myIndex" to the iterate tag statement, and then changed my html:link tag to incorporate myIndex, I got the result I was looking for: a link from inside an iteration loop that contained the index of that row. Now my follow up action will know which row was selected (clicked) by the user. The code now: <logic:iterate id="results" name="nameSearchResults" scope="session" indexId="myIndex" type="dhs.vcm.vis.form.NameSearchResultsForm"> ... <html:link page='<%= "NameSearch/Details?selectedClient=" + myIndex %>' > <bean:write name="results" property="clientName"/> </html:link> >From: "Struts Developer" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Getting index inside iterate / pager tag >Date: Mon, 29 Apr 2002 14:13:08 -0500 > >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]> > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

