Código HTML:
Ver original
<select size="5"> <% try{ String connectionURL = "jdbc:oracle:thin:@localhost:1521:asixjg"; Connection connection = null; Statement statement = null; ResultSet rs = null; Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); connection = DriverManager.getConnection(connectionURL, "misql", "misql"); statement = connection.createStatement(); String QueryString; QueryString = "SELECT ID from p_clientes "; rs = statement.executeQuery(QueryString); %> <% while (rs.next()) { %> <% }%> </select>
Es decir al enviar tendria que dar el value del ID correcto ? pero no me funciona
Que hago mal ?