主题:jsp中什么老提示"找不到类"?
我用的是WebLogic 7.X,在写jsp和Bean时是直接用记事本写的,bean用WebLogic带的JDK1.4进行编译,
我把\bean\MyBean.class复制到 mydomain\application\myapp\classes\下面.
hellouser.jsp和response.jsp都放在myapp\下面.
当浏览器中输入http://localhost/hellouser.jsp,点一下按钮就会出现出错页面.提示:
/response.jsp(3): class 'bean.MyBean' could not be loaded
probably occurred due to an error in /response.jsp line 3:
<jsp:useBean id="NameBean" scope="session" class="bean.MyBean"></jsp:useBean>
这是怎么回事?
附件里有源码.
我把\bean\MyBean.class复制到 mydomain\application\myapp\classes\下面.
hellouser.jsp和response.jsp都放在myapp\下面.
当浏览器中输入http://localhost/hellouser.jsp,点一下按钮就会出现出错页面.提示:
/response.jsp(3): class 'bean.MyBean' could not be loaded
probably occurred due to an error in /response.jsp line 3:
<jsp:useBean id="NameBean" scope="session" class="bean.MyBean"></jsp:useBean>
这是怎么回事?
附件里有源码.