用jsp的jdbc连接不上oracle
我的程序写的应该没问题,可就是用jdbc连接不上oracle数据库。用tomcat运行程序提示的错误:
Type:Exception report
Description: The server encountered an internal error () that prevented it from fulfilling this request.
Exception:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 11 in the jsp file: /Ex5_1.jsp
conn cannot be resolved
8: <title>创建数据库</title>
9: </head>
10: <body ><font size=2>
11: <%
12: try{
13:
14: Class.forName("oracle.jdbc.driver.OracleDriver"); //载入JDBC驱动程序
Stacktrace:
org.apache.(DefaultErrorHandler.java:85)
org.apache.(ErrorDispatcher.java:330)
org.apache.(JDTCompiler.java:415)
org.apache.(Compiler.java:308)
org.apache.(Compiler.java:286)
org.apache.(Compiler.java:273)
org.apache.jasper.(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
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)
急啊,老大们一定帮帮我啊!