运行JSP+JAVABEAN在tomcat下出现这个问题
谁帮我看看
type Exception reportmessage 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: 25 in the jsp file: /bookstore/catalog.jsp
BookBean cannot be resolved to a type
22: <%
23: while(it.hasNext())
24: {
25: BookBean book=(BookBean)it.next();
26: String title=book.getTitle();
27: float price=book.getPrice();
28: int bookId=book.getId();
An error occurred at line: 25 in the jsp file: /bookstore/catalog.jsp
BookBean cannot be resolved to a type
22: <%
23: while(it.hasNext())
24: {
25: BookBean book=(BookBean)it.next();
26: String title=book.getTitle();
27: float price=book.getPrice();
28: int bookId=book.getId();
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
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:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
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.23 logs.
谁帮我看看
type Exception reportmessage 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: 25 in the jsp file: /bookstore/catalog.jsp
BookBean cannot be resolved to a type
22: <%
23: while(it.hasNext())
24: {
25: BookBean book=(BookBean)it.next();
26: String title=book.getTitle();
27: float price=book.getPrice();
28: int bookId=book.getId();
An error occurred at line: 25 in the jsp file: /bookstore/catalog.jsp
BookBean cannot be resolved to a type
22: <%
23: while(it.hasNext())
24: {
25: BookBean book=(BookBean)it.next();
26: String title=book.getTitle();
27: float price=book.getPrice();
28: int bookId=book.getId();
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
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:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
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.23 logs.
解决方案 »
- 超链接标签中的 target可以是某个Div么?
- 100分求一Java Web开发的个人博客系统
- tomcat+apache找不到JSP
- 急急急,多叉树递归显示问题
- 100求:java Serializable 实现 不同电脑之间的通信 实例
- 请教?怎样使<Select>的<Option>出现Title的提示内容
- 在一个机器上安装weblogic 并在他下发布两个软件 互相调用发生了session 问题 (请进)
- 新手提问:如何在TOMCAT中运行servlet?
- 如何把long型转为String型?..
- 用tomcat做服务器,一般把*.jsp与servlet程序分别放在哪个目录下?
- 项目验收,遇到第三方测试,出现压力问题,急需解决
- 解析excel中的数据,显示在jsp页面上。
<%@ page import="....BookBean"%>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
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:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
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.23 logs.