struts2 在iterator中嵌套radio标签

前提1:
原html代码
<tr>
<td width="10"><input type="radio" name="dc" value="1"></td>
<td>00001</td>
<td>数据中心01</td>
</tr>
<tr>
<td width="10"><input type="radio" name="dc" value="2"></td>
<td>00002</td>
<td>数据中心02</td>
</tr>
。。。。
同上一直有10个
现在改成struts2标签
<s:iterator value="dcList" var="item" >
<tr>
  <td width="10"><s:radio name="item.dcradio" list="#item.dcradio" listValue="''"></s:radio>
  <td><s:property value="idcode"/></td>
  <td><s:property value="name"/></td>
</tr>
</s:iterator>
前提2:
action里已经为dcradio,idcode,name定义相应的get,set方法,其中dcradio定义为boolean型
前提3:
jsp代码
<s:form action="Resource1.do" name="resource1" method="post" namespace="" theme="simple">
点击submit按钮后调用的这个Resource1这个action,是下个画面的action
问题1:
选中的radio的这行数据(一览中的其中一行)怎么传到下个画面上?(包括radio的值)
问题2:
下个画面的action(Resource1)该怎么接受它们并显示到画面上
辛苦各位老大了!小弟新学struts2,以后多多关照!

假如网页里有如下两个选项:
a
b
在Action里写一个属性:
private String test;
public void setTest(String test) {
this.test = test;
}

public String getTest() {
    return test;
}

在执行Action跳转到的新页面就可以使用:

访问刚才你选择的值。
再不明白,就请看这里吧http://www.cppblog.com/fenglin/articles/129212.html :D

大概地帮你看了下,dcList这个是不是一个对象呀?如果是一个对象,你可以在Action里实现ModelDriven接口,并覆盖其getModel方法,来达到传递参数的目的。在展现层就可以直接用s:iterator来列出数据了。建议你好好查下Struts2里关于参数传递方面的知识。