使用JSP加载组合框

时间:2014-11-30 13:24:36

标签: jsp combobox

我有两个comboxes。第一个是从SQL数据库加载的。我想根据第一个组合框中的值加载第二个组合框。以下是我的一些代码:

department: <select name="d">
    <%
     while (re.next()) {
        String un = re.getString("nom_dep");
     %>
     <option value="<%= un%>"><%= un%></option>
    <%
    }
     %>

0 个答案:

没有答案