@wendal 老师,有点懵,小白,求理解
这样改的吗?页面我根据查出来的东西迭代的话应该怎么用?
@At
@Ok("jsp:pages.biz.fl.fljg.xmgl.ssxm.SsxmQuotaAllotAdd")
public List<DicRegion> quotaAllotAdd() {
List<DicRegion> list = ssProjectManage.queryRegion();
return list;
}
<s:iterator id="edit_plan" value="{obj}." status="i">
<table width="100%" align="center" id="<s:property value="#edit_plan.id" />" cellpadding="3" cellspacing="0" style="border:1px solid black;border-bottom:0px;" rules="cols" borderframe="box">
<tr>
<td align="center" width="150px">
<input id="id" name="id" class="mini-hidden"
readonly="readonly" value="<s:property value="#edit_plan.id" />"/><s:property value="#edit_plan.name" />
</td>
<td align="center" width="200px">
<input width="100%" id="planId" name="planId" class="mini-combobox" textField="name" valueField="code" url="<%=request.getContextPath()%>/fljg/ssxmApplyAction.getProjectDic.action" showNullItem="true" nullItemText="请选择..." />
</td>
<td align="left" width="250px">
<input id="planNum" name="planNum" class="mini-textbox" width="220px"/>
<a class="mini-button" iconCls="icon-add" onclick="add(<s:property value="#edit_plan.id" />,'<s:property value="#edit_plan.name" />')"></a>
</td>
</tr>
</table>
</s:iterator>