关于struts<html:radio>取值问题
大家好!
<bean:write name="CompeteList" property="competeId"/></td>
我想让这条语句用单选按钮显示给用户。。
我试了试<html:radioname="CompeteList"property="liansaiId"value="<html:radioproperty=""value=""></html:radio>"></html:radio> 可是不行
请教给位应该怎么写呢? 以下是我要输出的语句 第一条要输出的语句就是单选按钮
<logic:iterate id="CompeteList" name="CompeteList">
<tr>
<td width="6%" bgcolor="#DCDDDF"><bean:write name="CompeteList" property="competeId"/></td>
<td width="20%" bgcolor="#DCDDDF"><bean:write name="CompeteList" property="competeName"/></td>
<td width="6%" bgcolor="#DCDDDF"><bean:write name="CompeteList" property="competeType"/></td>
<td width="6%" bgcolor="#DCDDDF"><bean:write name="CompeteList" property="beginTime"/></td>
<td width="6%" bgcolor="#DCDDDF"><bean:write name="CompeteList" property="endTime"/></td>
</tr>
</logic:iterate>
------解决方案--------------------
HTML code
<logic:iterate id="CompeteList" name="CompeteList">
<tr>
<td width="6%" bgcolor="#DCDDDF">
<html:radio idName="CompeteList" property="competeId" value="competeId">
<bean:write name="CompeteList" property="competeId"/>
</html:radio>
</td>
<td width="20%" bgcolor="#DCDDDF"> <bean:write name="CompeteList" property="competeName"/> </td>
<td width="6%" bgcolor="#DCDDDF"> <bean:write name="CompeteList" property="competeType"/> </td>
<td width="6%" bgcolor="#DCDDDF"> <bean:write name="CompeteList" property="beginTime"/> </td>
<td width="6%" bgcolor="#DCDDDF"> <bean:write name="CompeteList" property="endTime"/> </td>
</tr>
</logic:iterate>