yyt030 发表于 2013-2-6 08:46:17

jsp中下拉列表的配置

在做项目的过程中,有时候的下拉列表需要在数据库中查询得到! 
request.setAttribute("test1Map","test1Map"); 同时,要在jsp页面加入下列代码:
<tr><td height="10" align="right" bgcolor="ECF3FF">分类:      <td height="22"bgcolor="#ECF3FF">      <html:select property="test1">         <html:options collection="test1Map" property="label"labelProperty="value" /></html:select></td></tr> 
页: [1]
查看完整版本: jsp中下拉列表的配置