本人遇到一个让我头疼了三四天了啊.就是调试错误,请各位路过的,手下留情,随便讲讲你们的想法..
比如a.class 的源文件是a.java的内容是package org.zl.message;
比如b.class 的源文件是b.java的内容是package org.zl.message;
比如c.class 的源文件是c.java的内容是package org.zl.message;而且调用a.class和b.class
然后通过javac org/zl/message/c.java 是通过这样编译的,运行也是这样..多没有错误
我建了个网页比如是:调用了以上的类,可就是编译错误
d.jsp
<%@ page import="org.zl.marketleftad.*"%>
..........................................
...........................................
可还是显示org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 9 in the jsp file: /1/Conversion.jsp
Generated servlet error:
The type html is not visible
An error occurred at line: 9 in the jsp file: /1/Conversion.jsp
Generated servlet error:
The type html is not visible
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
这样的错误....
各位帮我这个忙吧,真的快要死了
[此贴子已经被作者于2006-8-8 9:30:53编辑过]