关于一个JSP错误

来源:百度知道 编辑:UC知道 时间:2024/05/26 22:21:33
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 1 in the generated java file
The type org.apache.struts.action.ActionForm cannot be resolved. It is indirectly referenced from required .class files

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342

编译错误,你的程序已经编译成功。去看看你的sql语句之类的,调用之类地方是否是null,这些都是出这种错的地方

org.apache.struts.action.ActionForm 找不到,估计是你没有导入struts的相关包.
QQ405266926
导入也有不同的方式的,看你用什么导入方式,如果用myeclips或者是其他ide的话还要看builderpath里面有没有,不同的ide版本会有不同的结果,有的只要直接放到lib里面就可以但是有的不可以

不是你程序的错,是系统的错。

配置文件有问题