You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Enrique Prados Valiente <ep...@solusoft.es> on 2001/05/29 12:46:36 UTC
problems with resultSet
hi,
Hi!
I'm using Tomcat and JSP but there are problem, my JSP don' work.....
I have this code in my JSP
(code.....)
Statement
s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_
READ_ONLY);
(more code........)
In begin of my JSP there is this code line <%@ page language="java"
import="java.sql.*,java.io.*,java.util.*" %>
but when I run the server and JSP, it appears this 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_INS
ENSITIVE,ResultSet.CONCUR_READ_ONLY);
^
C:\TOMCAT\work\localhost_8080%......java:84: Method absolute(int) not found
in interface java.sql.ResultSet.
rs.absolute(5);
Can anyone out there help me?
Thanks in advance,
Enrique.