请高手帮忙!谢谢

08-06-12 javajspyonghu

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /rectangle.jsp(2,0) The value for the useBean class attribute com.chapter2.Rectangle is invalid.

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)

org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1175)

org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)

org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)

org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)

org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)

org.apache.jasper.compiler.Node$Root.accept(Node.java:457)

org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)

org.apache.jasper.compiler.Generator.generate(Generator.java:3322)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.

错误.txt


attachment:


错误.txt

banq
2008-06-13 17:33

>/rectangle.jsp(2,0) The value for the useBean class attribute com.chapter2.Rectangle is invalid.

这是错误信息,意思第2行初五, 有关com.chapter2.Rectangle值无效,在这个方向花力气。

学会调试和看错误信息。

javajspyonghu
2008-06-13 21:19

这段时间一直在研究java语言,可是还弄不清楚这个程序错在哪了,rectangle.java源程序编译也通过了,jsp代码也是书上源程序,就是不知算哪?不知道怎么办?请高手不吝赐教!不胜感激!