当前位置: 技术问答>java相关
大家快来看我的jsp+javabean问题!!高手请进,赐教!!!
来源: 互联网 发布时间:2015-04-23
本文导语: 我把bean.jsp放在tomact/.../wap/jsp/下,Lonnowbean.class放在tomact/../wap/WEB-INF/classes/Lonnow/下,且已经加入了classpath。而且我的bean本身没问题的,编译通过了的!!但是编译bean.jsp出错???/错误是: org.apache.jasper.JasperException: Unabl...
我把bean.jsp放在tomact/.../wap/jsp/下,Lonnowbean.class放在tomact/../wap/WEB-INF/classes/Lonnow/下,且已经加入了classpath。而且我的bean本身没问题的,编译通过了的!!但是编译bean.jsp出错???/错误是:
org.apache.jasper.JasperException: Unable to compile class for JSP
C:Program FilesApache Tomcat 4.0work192.168.201.222wapjspbean$jsp.java:4: Can't access class Lonnow.Lonnowbean. Class or interface must be public, in same package, or an accessible member class.
import Lonnow.Lonnowbean;
附上带码:
bean.jsp代码:
JSP测试页面--hello world!
org.apache.jasper.JasperException: Unable to compile class for JSP
C:Program FilesApache Tomcat 4.0work192.168.201.222wapjspbean$jsp.java:4: Can't access class Lonnow.Lonnowbean. Class or interface must be public, in same package, or an accessible member class.
import Lonnow.Lonnowbean;
附上带码:
bean.jsp代码:
JSP测试页面--hello world!