*
The moose likes Struts and the fly likes help with html radio tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help with html radio tag" Watch "help with html radio tag" New topic
Author

help with html radio tag

Aswathy TS
Greenhorn

Joined: Sep 29, 2008
Posts: 2
I am displaying a list in a JSP page using the following code..The problem is i have to add 2 radio buttons(View & Edit) at the end of each row for the status field of each resource..The list is from resource table and this status is from roleresourcemapping table....I have tried with <html:radio> tag..but can select only one radio button at a time from the whole rows....Is there any other way to do this???


<logic:iterate id="data" name="resourcelist"
type="com.sp.dct.security.bo.ResourceBO" indexId="index">

<tr>
<td><html:multibox property="resourcechecked"
value="<%=data.getResourceName()%>"></html:multibox></td>

<td><bean:write name="data" property="resourceId" />

</td>
<td><bean:write name="data" property="resourceName" /></td>
<td><bean:write name="data" property="description" /></td>
<!--<td><html:radio property="status" value="V"/></td>
<td><html:radio property="status" value="E"/></td>-->
</tr>

</logic:iterate>
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You will need to use Indexed properties for this. For more information on how to do this, see question 6 of our FAQ.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with html radio tag
 
Similar Threads
HTML:OPTIONS
Arraylist in JSP with Html radio
Html Radio buttons and Arraylist
re:struts dynamic radio buttons
VALUE Property of RADIO-RENDERING ISSUE