JSP登陆界面出现这样的错误提示!希望大家帮帮忙啊!
typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatprevent...
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /conn.jsp at line 5
2:
3: <%@ page import="java.sql.*"%>
4:
5: <%Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
6:
7: String url="jdbc:oracle:thin:@localhost:1521:bbs";
8:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
高手们帮帮忙啊!
在线等............... 展开
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /conn.jsp at line 5
2:
3: <%@ page import="java.sql.*"%>
4:
5: <%Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
6:
7: String url="jdbc:oracle:thin:@localhost:1521:bbs";
8:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
高手们帮帮忙啊!
在线等............... 展开
3个回答
展开全部
是不是你没有用对象来接受
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance
这个对象
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance
这个对象
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
很诡异的代码,为什么要在jsp里连接数据库呢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询