cannot be resolved to a type的解决方案

错误是:

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

 

解决方法:

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

你可能感兴趣的:(exception,jsp,server,String,File,Class)