Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
话题被移动
该话题已被移动 - littledeer1974 , 2005-01-06 21:13
如果您尚不清楚该话题被移动的原因,请参考论坛规则以及本版公告或者联系本版版主。
作者 求救一个简单的JSP问题
pc





发贴: 15
于 2004-12-31 11:40 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
//前面的引用
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>

...
...
<%
String test = "";
ResultSet rs1 = DB.exSql(s_SQL1);
if(!rs1.isAfterLast()){
while (rs1.next()){
if(rs1.isLast()) ////出错处,我想定位到最后一条记录,除这这种方法还有别的方法没有?
test = "last";
else
test = "mid";
};
};
%>

程序员调用时出错,信息在下面,请教怎样解决

javax.servlet.ServletException: ????????????: isLast
  org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
  org.apache.jsp.jsp.department.treeDepartment_jsp._jspService(treeDepartment_jsp.java:144)
  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:301)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.sql.SQLException: ????????????: isLast
  oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
  oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
  oracle.jdbc.driver.OracleResultSetImpl.isLast(OracleResultSetImpl.java:416)
  org.apache.jsp.jsp.department.treeDepartment_jsp._jspService(treeDepartment_jsp.java:112)
  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:301)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

谢谢




25了才开始学JAVA晚吗?

话题树型展开
人气 标题 作者 字数 发贴时间
2655 求救一个简单的JSP问题 pc 2153 2004-12-31 11:40
2266 Re:求救一个简单的JSP问题 93184 43 2005-01-01 01:08
2137 Re:求救一个简单的JSP问题 dennisjl 168 2005-01-02 04:01
2045 Re:求救一个简单的JSP问题 logix 40 2005-01-06 20:58
2081 Re:求救一个简单的JSP问题 nego_sun_java 28 2005-01-10 20:58
2137 Re:求救一个简单的JSP问题 xiaoyu216 4 2005-01-13 17:16

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923