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";
解决方法:
这个类放在一个包里面 应用 就不会出这个错了
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";
解决方法:
这个类放在一个包里面 应用 就不会出这个错了
相关文章推荐
- android编译错误“OnClickListener cannot be resolved to a type”解决方案
- ActionSupport cannot be resolved to a type解决方案
- OnScrollListener cannot be resolved to a type 解决方案
- android编译错误“OnClickListener cannot be resolved to a type”解决方案
- cannot be resolved to a type解决方案
- eclipse中的web项目报错:HttpServlet cannot be resolved to a type解决方案
- android编译错误“OnClickListener cannot be resolved to a type”解决方案
- xxx cannot be resolved to a type 错误解决方法
- "XX cannot be resolved to a type "eclipse报错及解决
- Eclipse “cannot be resolved to a type” error
- textview cannot be resolved to a type 解决方法
- Eclipse “cannot be resolved to a type” error
- javax.servlet.jsp.JspException cannot be resolved to a type
- Button cannot be resolved to a type报错
- 解决方案:The type java.lang.Object cannot be resolved It is indirectly referenced ...
- ActionEnter cannot be resolved to a type
- javax.servlet.jsp.JspException cannot be resolved to a type
- "XXX cannot be resolved to a type "eclipse报错及解决说明
- Httpservlet cannot be resolved to a type的原因与解决方法
- Java_注解_异常_01_ElementType cannot be resolved to a variable