
a la hora de enviar el formulario no me captura el valor
Publicado por luisa (1 intervención) el 21/06/2018 21:22:01
hola cree un dro list que muestra los datos que tengo en mi base de datos pero a la hora de enviar el formulario no me captura el valor espero puedan ayudarme
jsp
jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<% ResultSet rs = null; %>
<%
try {
Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection("jdb:oracle:thin:@localhost:1521:XE ", "LUISASUAZA", "1234");
Statement st = con.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
rs = st.executeQuery("select PERFIL,ID_PERFIL from REGISTRO");
} catch (Exception e) {
out.println(e.toString());
}
while (rs.next()) {
}
try {
%>
<select name="perfil_r" id="perfil_r" required="required">
<%
rs.beforeFirst();
while (rs.next()) {
%>
<option>
<td align="center" value="<%=rs.getString("PERFIL")%>"><%=rs.getString("ID_PERFIL")%></td>
</option>
<%
}
} catch (SQLException e) {
out.println(e.toString());
}
%>
</select>
Valora esta pregunta


0