File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help with html radio tag" Watch "help with html radio tag" New topic

help with html radio tag

Aswathy TS

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="" indexId="index">

<td><html:multibox property="resourcechecked"

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

<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>-->

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.

Consultant, Sima Solutions
Don't get me started about those stupid light bulbs.
subject: help with html radio tag
It's not a secret anymore!