第1个回答 2011-01-05
<%
ResultSet rs = db.executeQuery(strQuery); //从数据库中查询 结果放入ResultSet
%>
<select name = "select_list">
<option value="" selected="true">请选择</option>
<%
while(rs.next()){
%>
<option value="<%=rs.getString("column_name")%>"><%=rs.getString("column_name")%></option>
<%
}
%>
</select >