<jsp:useBean id="helloBean" scope="application" class="test.helloWorld" />
</jsp:useBean>

解决方案 »

  1.   

    E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp
    路徑錯誤
    應該是
    E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\test\helloWorld.class
      

  2.   

    E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes\test\helloWorld.class
    樓上是筆誤
      

  3.   

    Patrick_DK(疾风摩郎) (  ) : 错误信息为:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__hi_45_bean.java:87: cannot resolve symbol
    probably occurred due to an error in /hi-bean.jsp line 6:
    <jsp:useBean id="helloBean" scope="session" class="helloWorld" />
      

  4.   

    把CLASS文件放到
    E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes\test\下
      

  5.   

    路径错了你改成 mote_li(无底洞) 说得那样
      
     
      

  6.   

    我的.class文件是在那个目录下,没有错啊。
      

  7.   

    代码没有错误。
    应该是路径错误。把报错贴出来看看。
    ps:jsp文件中title标签后半部分左边那“<”有错。
      

  8.   

    这路径究竟该怎么个设置法啊?
    我是把JSP文件存在却省的路径下:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp然后呢,在 这个却省的路径下的WIN-INF下建了classes/test 把JAVABEAN存在这个目录下了,环境变量我也加进去了,用JAVAC编译也通过了,也就是不行!!谁有做好的程序给我看一下吧,我真是没辙了,看来这分工作保不住了。哎
      

  9.   

    如果我把CLASS路径设置为:helloWorld
    那么错误信息为:错误信息为:E:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__hi_45_bean.java:87: cannot resolve symbol
    probably occurred due to an error in /hi-bean.jsp line 6:
    <jsp:useBean id="helloBean" scope="session" class="helloWorld" />如果我设为:test.helloworld  干脆就是:Error 500--Internal Server Error 
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
     
    这可怎么办啊
      

  10.   

    在jsp文件中:用这一句<jsp:getProperty name="helloBean" property="hi" />
    取代<%= helloBean.getHi() %>试试
      

  11.   

    hello.jsppath=D:\bea\wlserver6.
    \config\mydomain\applications\DefaultWebApp\hello.jsp
    --------------
    <%@ page contentType="text/html; charset=GBK" %>
    <html>
    <head>
    <title>
    hello
    </title>
    </head>
    <jsp:useBean id="bean0" scope="session" class="ttt.ttt" /><body>
    <h1>
    <%=bean0.hello()%>
    </h1>
    </body>
    </html>--------------ttt.classpath=
    D:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes\ttt\ttt.class
    --------
    package ttt;public class ttt {
      public String hello(){
        return "hello";
      }
    }
    --------then  restart  server      我的结果是成功的!
    你是不是没重起服务?