67,513
社区成员
发帖
与我相关
我的任务
分享
action中 FreightPolicyQueryAction extends ActionSupport implements
ServletRequestAware, ModelDriven<FreightPolicyQueryModel>
.....
String[] insurance = new String[2];
insurance[0] = "1";
insurance[1] = "2";
LOG.info(insurance.length);
getModel().setInsurance(insurance);//给驱动模型设置值
if (getModel().getInsurance() != null) {
LOG.info(getModel().getInsurance().length);
for (int i = 0; i < getModel().getInsurance().length; i++) {
LOG.info(getModel().getInsurance()[i]);
}
}
return "fpQueryInit";
<td width="75%">
<s:checkboxlist name="insurance" theme="simple"
labelposition="right" list="#{'1':'国内','2':'进口'}"
listKey="key" listValue="value"></s:checkboxlist>
</td>
<td width="75%">
<s:checkboxlist name="insurance" theme="simple"
labelposition="right" list="#{'1':'国内','2':'进口'}"
listKey="key" listValue="value"></s:checkboxlist>
</td>