I have thee columns in table, Id, Date and Description.
From the main page I am setting all values and forwarding the
struts action to maint page
request.setAttribute("specialResult", allItems);
return mapping.findForward("maint"); //points to Maint.jsp in struts-config.xml
**********My Maint.jsp page *********
.....
<table border="2" cellspacing="0" cellpadding="5">
<logic:notEmpty name="specialResult" scope="request">
<logic:iterate name="specialResult" id="specialResult"
indexId="index">
<tr align="center">
<td width="15%"><INPUT type="radio" value="upId"
name="radio"/></td>
<td width="15%"><bean:write name="specialResult"
property="upholidayDate" /></td>
<td width="15%"><bean:write name="specialResult"
property="upholidayDesc" /></td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
<table align="center">
<tr>
<td valign=top><input type="button" property="update"
value="UPDATE" onclick="doUpdate()"></td>
<td valign=top><input type="button" property="delete"
value="DELETE" onclick="doDel()"></td>
<td valign=top><input type="button" property=cancel
value="GO BACK" onclick="doCancel()"></td>
</tr>
</table>
.....
I need to retrieve that "upId" which the radio button is selected.
I cannot set the radio button value as value="<%=upId%>" as the
JSP will not load.
Can i get that radio button upId (this is primary key in table) within my action .
String upId = request.getParameter("upId");
//but this is retrieving the first row id and not the selected id.
Please help.