您的位置:首页 > Web前端 > JavaScript

cannot be resolved to a type的解决方案

2008-03-10 15:18 337 查看
错误是:

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: 30 in the jsp file: /ModPro.jsp
DBConnect cannot be resolved to a type
27: </head>
28:
29: <body>
30: <jsp:useBean id="con" scope="page" class="DBConnect" />
31: <%
32:  ResultSet rs;
33:  String sql = "select * from goods";

 

解决方法:

这个类放在一个包里面 应用 就不会出这个错了  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息