是因为你引用的javabean所在的路径名称与其java代码指定的路径不一致,按网上指明的路径名加入javabean就可以了

解决方案 »

  1.   

    hornbilltofy() 谢谢你,不过我很菜,网上指明的路径名在哪儿看啊,在web.xml 中有吗?
      

  2.   

    显示的错误是:
    type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 4 in the jsp file: /725/test.jspGenerated servlet error:
        [javac] Compiling 1 source fileD:\Tomcat\work\Standalone\localhost\_\725\test_jsp.java:7: cannot find symbol
    symbol  : class TestBean
    location: package test
    import test.TestBean;
                ^
    D:\Tomcat\work\Standalone\localhost\_\725\test_jsp.java:47: cannot find symbol
    symbol  : class TestBean
    location: class org.apache.jsp.test_jsp
    TestBean testBean=new TestBean("This is a test java bean.");
    ^An error occurred at line: 4 in the jsp file: /725/test.jspGenerated servlet error:
    D:\Tomcat\work\Standalone\localhost\_\725\test_jsp.java:47: cannot find symbol
    symbol  : class TestBean
    location: class org.apache.jsp.test_jsp
    TestBean testBean=new TestBean("This is a test java bean.");
                          ^
    3 errors
      

  3.   

    在TestBean里加上(或改为)package test;
    创建一个文件夹test,把TestBean放在test目录下
      

  4.   

    把jdk里的tools.jar考到服务器的lib下
      

  5.   

    你的BEAN要对应你的文件的位置,创建一个文件夹test,把TestBean放在test目录下
      

  6.   

    我是用netbean3.6工具的,方法是在webimf目录>>class目录,在class目录中new一个package,你的包名为test,然后把TestBeab在test包里(目录下),在jsp中:
    <jsp:userbean id ="testBean" scope="application" class ="test.TestBean"/>.
    我测试过没问题.
      

  7.   

    import 工程名字.test.TestBean;
    看一下行不行呀!不行你把代码考过来我帮你调试!
    对了你在公司工作的吗?
      

  8.   

    stray1718(旺仔) opsddr(猫王) lwh781024(阿度)  ike_Adriano(亚热带空气)  ningshuihan(一蓑烟雨) cyouyou(甘蓝) ,谢谢各位哥哥相助。虽然我现在还是没成功。希望大家有专门的资料提供给我,thang u!
      

  9.   

    你还是把j2se再
    好好看看把 对包的概念好象不太清晰
      

  10.   

    thank u ,everbody!,my problem has been worked out!!!!