要是用标签实现得看你的Arraylist是怎么存放的
还可以利用Javascript来实现:把数据从FORM中取出放到一个数组里面然后利用JAvascript就可以实现了

解决方案 »

  1.   

         <logic:iterate id="pojo" name="formbean"
    property="terminals" indexId="index">
    <TR>
    <td height="26" align="left" width="8%">
    <html:radio idName="pojo" property="name" name="formbean" value="id">
    </html:radio>
    </td>
    </TR>
    </logic:iterate>
      

  2.   

    property="name" 为formbean中属性,而值是pojo类的id属性即value="id"
      

  3.   

    <html:iterator id = "element" name= "Result" indexId = "index">
    <tr>
    <td> <html:radio name = "element" property = "questionid"/>
    </td>
    <td>
    <bean:write name = "element" property = "choice1"/>
    </td>
    </tr><tr>
    <td>
    <html:radio name = "element" property = "questionid"/>
    </td>
    <td>
    <bean:write name = "element" property = "choice2"/>
    </td>
    </tr><tr>
    <td>
    <html:radio name = "element" property = "questioid"/>
    </td>
    <td>
    <bean:write name = "element" property = "choice3"/>
    </td>
    </tr>
    <tr>
    <td>
    <html:radio name = "element" property = "questionid"/>
    </td>
    <td>
    <bean:write name = "element" property = "choice4"/>
    </td>
    </tr></html:iterator>
    我的name = "Result"存放的是HashMap类型的,我主要的是formBean不知道怎么接收考试者写来的答案