JSP调试遇到问题,求救!!
我的网上购书系统做的差不多了,但是在编译时遇到了问题好象读javabean文件BookInf.class时有错误,难道是BookInf.class编译后有错误,还是放的文件路径有问题,我的bean文件放在ROOT/bookshop/WEB-INF/classes/bean/BookInf.class,运行index.jsp出现下面的提示:
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: Unable to compile class for JSP
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\bookshop\index_jsp.java:7: package bean does not exist
import bean.BookInf;
^
An error occurred at line: 67 in the jsp file: /bookshop/index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\bookshop\index_jsp.java:130: cannot resolve symbol
symbol : class BookInf
location: class org.apache.jsp.bookshop.index_jsp
BookInf book= (BookInf)booklist.elementAt(index);
^
An error occurred at line: 67 in the jsp file: /bookshop/index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\bookshop\index_jsp.java:130: cannot resolve symbol
symbol : class BookInf
location: class org.apache.jsp.bookshop.index_jsp
BookInf book= (BookInf)booklist.elementAt(index);
^
An error occurred at line: 87 in the jsp file: /bookshop/index.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\bookshop\index_jsp.java:172: cannot resolve symbol
symbol : class BookInf
location: class org.apache.jsp.bookshop.index_jsp
BookInf book= (BookInf)booklist.elementAt(index+1);
^
An error occurred at line: 87 in the jsp fil