案例:
select latnid from t_latn;
查询出来的结果为:
0
51
52
53
54 .........
页面想用下拉列表迭代这个结果集,结果集封装成list--->map的形式。
jsp 页面的迭代形式为:
<html:select property="form_latnid" styleClass="select" οnchange="">
<html:option value="-1">---请选择---</html:option>
<logic:notEmpty name="latnidList">
<html:options collection="billcycleList" property="LATNID" labelProperty="LATNID" /> </logic:notEmpty>
</html:select>
select latnid from t_latn;
查询出来的结果为:
0
51
52
53
54 .........
页面想用下拉列表迭代这个结果集,结果集封装成list--->map的形式。
jsp 页面的迭代形式为:
<html:select property="form_latnid" styleClass="select" οnchange="">
<html:option value="-1">---请选择---</html:option>
<logic:notEmpty name="latnidList">
<html:options collection="billcycleList" property="LATNID" labelProperty="LATNID" /> </logic:notEmpty>
</html:select>