Unable to compile class for JSP:cartBean cannot be resolved to a typeException reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException:Unable to

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 01:45:32

Unable to compile class for JSP:cartBean cannot be resolved to a typeException reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException:Unable to
Unable to compile class for JSP:cartBean cannot be resolved to a type
Exception report
message
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:48 in the jsp file:/shoppingcart.jsp
cartBean cannot be resolved to a type
45:
46:
An error occurred at line:48 in the jsp file:/shoppingcart.jsp
cartBean cannot be resolved to a type
45:
46:
Stacktrace:
\x05org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
\x05org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
\x05org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
\x05org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
\x05org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
\x05org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
\x05org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
\x05org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
\x05org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
\x05org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
\x05javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
不是,大小写没有错!

Unable to compile class for JSP:cartBean cannot be resolved to a typeException reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException:Unable to
你检查下你的类是不是放在了/webapps/工程名/WEB-INF/classes/包名下,我也出现了你一样的错误,但是把java文件打包后就可以了.在你的Java文件开头加上package 包名吧.