tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Prados Valiente <>
Subject Problems with ResultSet
Date Tue, 29 May 2001 13:01:24 GMT

I'm using Tomcat and JSP but there are problem, my JSP don' work.....
I have this code in my JSP
Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);

(more code........)

           if (!rs.isFirst()) rs.previous(); 



(more code........)

In begin of my JSP there is this code line <%@ page language="java" import="java.sql.*,*,java.util.*"

but when I run the server and JSP, it appears this error

	[Microsoft][ODBC Driver Manager] Invalid cursor state

I think that Jsp fails in this code line,             <td><%=rs.getString(1)%></td><%

Can anyone out there help me? 
Thanks in advance, 

View raw message