为什么javabean用不了。急急急

dbx 2003-05-08 11:47:16
服务器Apache tomcat4.18+win2kPro

运行色servlet没有问题。但在jsp页中调用javabean就出错,出错代码如下:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 3 in the jsp file: /index.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\index_jsp.java:46: cannot resolve symbol
symbol : class sql_data
location: class org.apache.jsp.index_jsp
sql_data sqlbean = null;
^



An error occurred at line: 3 in the jsp file: /index.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\index_jsp.java:48: cannot resolve symbol
symbol : class sql_data
location: class org.apache.jsp.index_jsp
sqlbean = (sql_data) pageContext.getAttribute("sqlbean", PageContext.SESSION_SCOPE);
^



An error occurred at line: 3 in the jsp file: /index.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\index_jsp.java:51: cannot resolve symbol
symbol : class sql_data
location: class org.apache.jsp.index_jsp
sqlbean = (sql_data) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "sql_data");
^
3 errors
...全文
8 点赞 收藏 回复
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2003-05-08 11:47
社区公告
暂无公告