I have an example i used. Its not the best but it worked for me
In the JSP page <logic:iterate id="apprEntry" name="listDevApprGrpList" indexId="userIndex"> ..... <td align="center"> <html:radio value="A" name="apprEntry" property="primary_or_adjunct" indexed="true" onclick="">Pri.</html:radio> <html:radio value="B" name="apprEntry" property="primary_or_adjunct" indexed="true" onclick="">Adj.</html:radio> </td> ....... </logic:iterate> in the action form String[] primAdj = new String[listDevApprGrpList.size()+1]; for(int i=0;i<listDevApprGrpList.size();i++) // prepare a primary adjunct array { String preparedString = "apprEntry["+i+"].primary_or_adjunct"; String tempValue = request.getParameter(preparedString);// System.out.println("pth string is "+tempValue); primAdj[i] = tempValue; } "primAdj" this array will have the value of teh radio button in the order that of the ArrayList or Collection. I hope that helped. Let me know if that helped. I would love to know if there is a better way to achieve this. Regards, Uday Karrothi On 11/3/06, Perry Minchew <[EMAIL PROTECTED]> wrote:
I forgot to mention that I am iterating over an arraylist of beans, and I want each row in the table to associate with a single array list entry (eg a single bean). I want the approve radio on button 1 to update the status of the first bean in the list. -----Original Message----- From: Perry Minchew [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 11:41 AM To: user@struts.apache.org Subject: Radio buttons in a iterated list Hi all, I'm trying to create a registration admin approval page, where an admin signs in and sees all pending requests on their portal. My idea was to display all information about the user, and then have a final column with an approve/deny/noChange radio. DN, First, Last, .., *Approve o deny o N/C ----------------------------------------------------------------------- DN1, First1, Last1, .., *Approve o deny o N/C DN2, First2, Last2, .., o Approve o deny * N/C DN3, First3, Last3, .., o Approve * deny o N/C ____________________ |Submit mass approve| How can I use a single form like this to associate the value of each row with each individual record? So far I have <form.> <table.> <thead .> (Headers) </thead> <tr> <logic:iterate.> <td>..<td>.<td> Does anyone have any suggestions on how to do this? Thanks in advance. Perry Minchew Systems Integrator SPAWAR Systems Charleston Office : (843) 218.7031 Cell : (843) 822.1555 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]