jsp数据库连接池的问题
本人采用javabean实现数据库连接池的操作,但是在eclipse中运行却出现以下提示:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 9 in the jsp file: /test.jsp
DBConnManager cannot be resolved to a type
6: <head>
7: <meta http-equiv= "Content-Type " content= "text/html; charset=GB18030 ">
8: <title> test database connection pool </title>
9: <jsp:useBean id= "connManager " scope= "application " class= "DBConnManager "/>
10: </head>
11: <body>
12: <%!
请问这是什么原因啊?
[解决办法]
没有声明引入吧?
[解决办法]
no package name!
for example:
<jsp:useBean id= "connManager " scope= "application " class= "com.yourname.DBConnManager "/>
[解决办法]
沒找到DBConnManager的class文件吧。
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html