运行错误!!!

hongjava 2002-04-17 03:33:47
我用jbuilder5编译jsp文件无错运行产生了Location: /workroom.jspInternal Servlet Error:javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at _0002fworkroom_0002ejspworkroom_jsp_8._jspService(_0002fworkroom_0002ejspworkroom_jsp_8.java:149)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
我再这里做了一个数据庫的连接操作
<jsp:useBean id="link" scope="page" class="gaks.DateLink" />
<% ResultSet rs=link.executeQuery("select * from mz");
%>
<%
do{
%>
<option><%out.println(session.getAttribute("name"));%></option>
<%
}
while(!rs.next());
rs.close();
%>
其中DateLink是一个数据库连接的封装Bean
...全文
47 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
可乐加水 2002-04-17
我觉得这个地方这么写好点吧:
<%
do{
%>
<option><%out.println(session.getAttribute("name"));%></option>
<%
}
while(!rs.next());
rs.close();
---〉〉

<%
while(!rs.next());{
%>
<option><%out.println(session.getAttribute("name"));%></option>
<%
}
rs.close();

回复
tyscon 2002-04-17
hehe ,那么你把分数给我罢,别浪费啊。多谢多谢
回复
hongjava 2002-04-17
我已经知道错在什么地方了,是我的orcal数据驱动程序的问题
回复
发动态
发帖子
Web 开发
创建于2007-09-28

7.9w+

社区成员

Java Web 开发
申请成为版主
社区公告
暂无公告