Problemas conResultSet. Necesito ayuda,por favor.
Publicado por enrique (26 intervenciones) el 29/05/2001 12:34:01
hola, sigo con mi problema
tengo un jsp y no puedo compilar cuando hago
.....
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
........
el import está al principio de la página, <%@ page language="java" import="java.sql.*,java.io.*,java.util.*" %>
pero al compilar sale este error:
Error: 500
Localizacion: pag.jsp
Error interno del servlet:
org.apache.jasper.JasperException: No se puede compilar la clase para JSPC:\TOMCAT\work\localhost_8080%..... java:81: No variable TYPE_SCROLL_INSENSITIVE defined in interface java.sql.ResultSet.
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
^
C:\TOMCAT\work\localhost_8080%......java:81: No variable CONCUR_READ_ONLY defined in interface java.sql.ResultSet.
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
^
C:\TOMCAT\work\localhost_8080%......java:84: Method absolute(int) not found in interface java.sql.ResultSet.
rs.absolute(5);
Les agradecería que me ayudase.
Saludos.
tengo un jsp y no puedo compilar cuando hago
.....
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
........
el import está al principio de la página, <%@ page language="java" import="java.sql.*,java.io.*,java.util.*" %>
pero al compilar sale este error:
Error: 500
Localizacion: pag.jsp
Error interno del servlet:
org.apache.jasper.JasperException: No se puede compilar la clase para JSPC:\TOMCAT\work\localhost_8080%..... java:81: No variable TYPE_SCROLL_INSENSITIVE defined in interface java.sql.ResultSet.
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
^
C:\TOMCAT\work\localhost_8080%......java:81: No variable CONCUR_READ_ONLY defined in interface java.sql.ResultSet.
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
^
C:\TOMCAT\work\localhost_8080%......java:84: Method absolute(int) not found in interface java.sql.ResultSet.
rs.absolute(5);
Les agradecería que me ayudase.
Saludos.
Valora esta pregunta


0