你去把这个类找出来java.sql.ResultSet,
打开看看有没有这人方法不就是了吗??
打开看看有没有这人方法不就是了吗??
解决方案 »
- spring是如何加载配置文件中的bean信息的?
- Struts2.1、Spring3.0、Hibernate3.3框架整合遇到的问题
- 求思路
- 关于在Spring中对ibaits配置文件的解释invocation of init method failed nested exception is jav
- Java,J2EE交流群(MSN)
- <html:link>标签在URI后面传多个参数的问题~~~~
- log4j包错误信息
- 如何使用webServices传送一个对象
- 如何在pc甲上访问pc乙上的Ejb?
- kao,weblogic6 cluster 和 Ejb 2.0 的配置问题
- weblogic生成EAR时出错-100分解决了马上给。急!
- 怎样让weblogic成为管理工具-》服务中的一个服务?
激活游标:Statement stmt=null;
stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,CONCUR_UPDATABLE);
从你的错误提示来看不是你说的那个错误,是你写的那个方法名字错误,方法名字不对。应该是previous(),而不是preview ()
String Semester =GetSemester(SelYear,SelTerm); //得到学期数
StrSql="select count(*) from TCourse where semester='"+Semester+"'";
RS = workM.executeQuery(StrSql);
int SubjectNum=RS.getInt(1); //就错在这句话
RS.close();
(以上的这句话我在sql server2000中调式过了,是正确的)
出现以下错误,这到底是怎么回事java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid operation for the current cursor position.
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
com.microsoft.jdbc.base.BaseResultSet.validateCursorPosition(Unknown Source)
com.microsoft.jdbc.base.BaseResultSet.getInt(Unknown Source)
org.apache.jsp.admin.admin_005fview_jsp._jspService(admin_005fview_jsp.java:207)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:232)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
在 RS = workM.executeQuery(StrSql); 加上RS.next();