Unable to compile class for JSP

finder111111 2010-08-22 10:55:21
总是提示错误:
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the jsp file: /saxParseXML.jsp
parseXML1 cannot be resolved to a type
3: <%@ page import="org.xml.sax.*" %>
4: <%@ page import="org.xml.sax.helpers.*" %>
5: <%@ page import="java.io.*" %>
6: <jsp:useBean id="parse" scope="application" class="parseXML1"/>
7:
8: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
9: <html>


An error occurred at line: 6 in the jsp file: /saxParseXML.jsp
parseXML1 cannot be resolved to a type
3: <%@ page import="org.xml.sax.*" %>
4: <%@ page import="org.xml.sax.helpers.*" %>
5: <%@ page import="java.io.*" %>
6: <jsp:useBean id="parse" scope="application" class="parseXML1"/>
7:
8: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
9: <html>
...全文
30 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
蝈蝈老师 2010-08-22
  • 打赏
  • 举报
回复
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the jsp file: /saxParseXML.jsp



很明显,你的jsp第6行有问题,造成无法编译这个页面,检查一下。

6: <jsp:useBean id="parse" scope="application" class="parseXML1"/>

估计是类名前面的包名丢失了。



finder111111 2010-08-22
  • 打赏
  • 举报
回复
我又新定义了一个包,将累复制过去就可以了。谢了!
finder111111 2010-08-22
  • 打赏
  • 举报
回复
没有,前面没定义包。

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧