1. WEB-INF/classes2. import mybeans.ABean;
   <jsp:useBean id="a" class="ABean" scope="XXXX" />3. No

解决方案 »

  1.   

    bean放在web-inf\classes中
    不用import
    当然如果放在web-inf\classes\test
    中则
    bean中要有
    package test
    这是要用import test.YourBeanName
    Classpath不用设置。
      

  2.   

    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\HelloWorld_jsp.java:49: package test does not exist
          test.HelloWorld HW = null;
    bean已放在web-inf中,运行还是出现以上错误提示
      

  3.   

    bean应该放在WEB-INF\classes\test\下,因为你用到了Package test。
    错误提示package test不存在。JSP中只要用import test.* 就可以了。