运行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.
解决方案 »
- java类型转换问题,进来看看,我是菜鸟
- 我要提问
- float型超过11位后会变成科学计数法,如何正常显示????
- 為什麼會not found action instance ,action的路徑問題
- JSP 入门新手问题,想知道怎么做我第一个jsp程序
- 问,如何在JavaScript中判断一个输入的字符是字母???50分
- <jsp:/useBean name="do" scope="applicateion" class="do.do"/>
- 请教网上视频会议的原理及实现?
- 在js脚本里怎样班一个字符串转变成对象!
- java怎么调用C#编写的webservice接口
- 项目验收,遇到第三方测试,出现压力问题,急需解决
- 解析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.