<select name="supplier">
    <%
        try {
        Connection conn = JavaConnect.ConnectDb();
        Statement stmt = conn.createStatement();
        ResultSet rs; 
        rs = stmt.executeQuery("SELECT name FROM supplier "); 
        while(rs.next()) {
            out.write("<option value ="+rs.getString("name")+"</option>");
        }
        rs.close();
        stmt.close();
        } 
        catch(Exception e) {
            System.err.print("Sorry");
                           }
%>
</select>
I am trying to populate a combo box in a jsp page and have tried the above but im getting an empty combo box. I've researched other answers but most of them don't seem to work.
 
     
     
    