当前位置: 技术问答>java相关
jsp 中的javaBean 问题
来源: 互联网 发布时间:2015-03-22
本文导语: 我在jsp中用到了bean,却出了错,不知道为什么,我用的是tomcat3.2.1. jsp文件与bean java文件同房在webappsJsp; 错误如下:什么问题呢? org.apache.jasper.JasperException: Unable to compile class for JSPF:tomcat3.2.1worklocalhost_8080%2FJsp_0002...
我在jsp中用到了bean,却出了错,不知道为什么,我用的是tomcat3.2.1.
jsp文件与bean java文件同房在webappsJsp;
错误如下:什么问题呢?
org.apache.jasper.JasperException: Unable to compile class for JSPF:tomcat3.2.1worklocalhost_8080%2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:67: ???? welcome.java?
welcome.java wel = null;
^
F:tomcat3.2.1worklocalhost_8080%2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:70: ???? welcome.java?
wel= (welcome.java)
^
F:tomcat3.2.1worklocalhost_8080%2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:75: ???? welcome.java?
wel = (welcome.java) Beans.instantiate(this.getClass().getClassLoader(), "welcome.java");
^
3 ???
2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:75: ???? welcome.java?
wel = (welcome.java) Beans.instantiate(this.getClass().getClassLoader(), "welcome.java");
jsp文件与bean java文件同房在webappsJsp;
错误如下:什么问题呢?
org.apache.jasper.JasperException: Unable to compile class for JSPF:tomcat3.2.1worklocalhost_8080%2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:67: ???? welcome.java?
welcome.java wel = null;
^
F:tomcat3.2.1worklocalhost_8080%2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:70: ???? welcome.java?
wel= (welcome.java)
^
F:tomcat3.2.1worklocalhost_8080%2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:75: ???? welcome.java?
wel = (welcome.java) Beans.instantiate(this.getClass().getClassLoader(), "welcome.java");
^
3 ???
2FJsp_0002fwelcome_0002ejspwelcome_jsp_1.java:75: ???? welcome.java?
wel = (welcome.java) Beans.instantiate(this.getClass().getClassLoader(), "welcome.java");
|
Tomcat 里的javabean 和jsp 有各自的目录,看看文档先,怎么样设置目录。
http://www.csdn.net/oldexpert/TopicView.asp?id=85391&table=200101
http://www.csdn.net/oldexpert/TopicView.asp?id=85391&table=200101
|
我看是.class文件放置的位置不正确,我没用过tomcat,用的是weblogic,所以你可以查一下应该把类文件放在哪一个目录下。
你可以放在jdkjreclasses试一下吧。
你可以放在jdkjreclasses试一下吧。