<%@ page import = "ejb.ProjectJavaBean" contentType="text/html; charset=gb2312" %>
<jsp:useBean id="project" scope="session" class="ejb.ProjectJavaBean"/>你好象没有导入bean,看看上面的代码就知道了,
<jsp:useBean id="project" scope="session" class="ejb.ProjectJavaBean"/>你好象没有导入bean,看看上面的代码就知道了,
///
<jsp:useBean id="helloBean" scope="session" class="test.helloWord"/>
///
C:/Inetpub/wwwroot下新建一个WEB-INF/classes javabean放在这里了!/
C:/Inetpub/wwwroot下新建一个WEB-INF/classes/test javabean放在这里了!
http://localhost:8080/helloWorld.jsp;或c:\resin\conf\resin.conf可以设置端口
什么位置,我忘了,查找8080,改成80
http://localhost/helloWorld.jsp;
把helloWorld.class拷贝到test目录下
把这句
<jsp:useBean id="helloBean" scope="session" class="helloWord"/>
改成
<jsp:useBean id="helloBean" scope="session" class="test.helloWord"/>good luck
500 Servlet Exception
/helloworld.jsp:9: jsp:useBean can't find class `test.helloWord'
--------------------------------------------------------------------------------
Resin 2.1.0 (built Tue Mar 26 14:12:50 PST 2002) 我放置在c:/resin/doc/web-inf/classes/test/helloworld.class
也不行,,,毛病在哪啊?就是找不到javabean调用javabean我用的是
<jsp:useBean id="helloBean" scope="session" class="test.helloWord"/>
拼写错误helloWord
改为helloworld
拼写错误helloWord
改为helloWorld
/helloworld.jsp:13: Class out not found.
out printf(helloBean.getHi());
^
/helloworld.jsp:13: Invalid declaration.
out printf(helloBean.getHi());
^
Note: c:\inetpub\wwwroot\WEB-INF\work\_helloworld__jsp.java uses or overrides
a deprecated API. Recompile with "-deprecation" for details.
2 errors, 1 warning
/helloworld.jsp:13: Class out not found.
out printf(helloBean.getHi());
^
/helloworld.jsp:13: Invalid declaration.
out printf(helloBean.getHi());
^
Note: c:\inetpub\wwwroot\WEB-INF\work\_helloworld__jsp.java uses or overrides
a deprecated API. Recompile with "-deprecation" for details.
2 errors, 1 warning
helloBean.getHi()
改成
helloBean.getHI()
500 Servlet Exception
/helloworld.jsp:13: Class out not found.
out printf(helloBean.getHI());
^
/helloworld.jsp:13: Invalid declaration.
out printf(helloBean.getHI());
^
Note: c:\inetpub\wwwroot\WEB-INF\work\_helloworld__jsp.java uses or overrides
a deprecated API. Recompile with "-deprecation" for details.
2 errors, 1 warning--------------------------------------------------------------------------------
Resin 2.1.0 (built Tue Mar 26 14:12:50 PST 2002) 所有参与的人全部加分!太感谢大家了,没办法本人太白痴,麻烦你们了!
改成
out.printf(helloBean.getHI());
我要全部的分 70
改成
out.print(helloBean.getHI());
我要全部的分 70
out printf(helloBean.getHI());
改成
out.print(helloBean.getHI());
我要全部的分 70