cannot be resolved to a type的解决方案

来源:互联网 发布:python logging 回滚 编辑:程序博客网 时间:2024/05/17 09:12

错误是:

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";

 

解决方法:

这个类放在一个包里面 应用 就不会出这个错了  

原创粉丝点击