in jsp:
------
<s:iterator value="userList">
<tr class="odd gradeX">
<td><s:radio theme="simple" name="guser.id" list="#{id:name}"/></td>// Here id is listkey,name is listvalue(struts radio button every time print list size number of records <s:radio list="userList" listValue="name" listKey="id" name="guser.id"/>)
<td><s:property value="address" /></td>
<!-- <td><s:property value="guser.city" /></td>
<td><s:property value="guser.country" /></td>
<td><s:property value="guser.state" /></td>
<td><s:property value="guser.zip" /></td>-->
<td><s:property value="contact" /></td>
<td><s:property value="email" /></td>
<!-- <td><s:property value="vehicle.vehicleNumber" /></td>-->
</tr>
</s:iterator>
------
<s:iterator value="userList">
<tr class="odd gradeX">
<td><s:radio theme="simple" name="guser.id" list="#{id:name}"/></td>// Here id is listkey,name is listvalue(struts radio button every time print list size number of records <s:radio list="userList" listValue="name" listKey="id" name="guser.id"/>)
<td><s:property value="address" /></td>
<!-- <td><s:property value="guser.city" /></td>
<td><s:property value="guser.country" /></td>
<td><s:property value="guser.state" /></td>
<td><s:property value="guser.zip" /></td>-->
<td><s:property value="contact" /></td>
<td><s:property value="email" /></td>
<!-- <td><s:property value="vehicle.vehicleNumber" /></td>-->
</tr>
</s:iterator>
No comments:
Post a Comment