<s:iterator value="tc" status="status" >
<input type="hidden" name="testId" value="<s:property value="testId"/>">
<tr>
<td><s:property value="#status.count"/></td>
<td><s:property value="testTxt"/></td>
<td><s:property value="resultA"/></td>
<td><s:property value="resultB"/></td>
<td><s:property value="resultC"/></td>
<s:bean name="com.test.action.LoginUserAction" id="test"/>
<td><s:radio list="#test.testName" name="%{testId}" theme="simple" listValue="value" listKey="key" id="c" onclick="changeRadio(%{testId})"/></td>
</tr>
</s:iterator>
<tr><td colspan="6" align="center"><s:submit value="提交" theme="simple" align="center" onclick=""/></td>
</tr>我提交到action,但在actionli里面不知道怎么获得<s:radion》选定的值,希望朋友帮帮忙,谢谢啦
<input type="hidden" name="testId" value="<s:property value="testId"/>">
<tr>
<td><s:property value="#status.count"/></td>
<td><s:property value="testTxt"/></td>
<td><s:property value="resultA"/></td>
<td><s:property value="resultB"/></td>
<td><s:property value="resultC"/></td>
<s:bean name="com.test.action.LoginUserAction" id="test"/>
<td><s:radio list="#test.testName" name="%{testId}" theme="simple" listValue="value" listKey="key" id="c" onclick="changeRadio(%{testId})"/></td>
</tr>
</s:iterator>
<tr><td colspan="6" align="center"><s:submit value="提交" theme="simple" align="center" onclick=""/></td>
</tr>我提交到action,但在actionli里面不知道怎么获得<s:radion》选定的值,希望朋友帮帮忙,谢谢啦
是testId的值,你打算怎么在你的Action类中写相映的方法?
不懂了?