有这样的语句吗<jsp:useBean id="DBconn" class="xxxx.xxx" scope="page" />

解决方案 »

  1.   

    没办法,小弟只有把整个jsp留言本程序传上来了,请大侠一定帮忙看看,先谢了.
    下载地址 http://www.jzfybjy.com/liou/sccx/uploadfile/1148.rar
    我先在控制面版处连好数据源guestbook.mdb,然后在jbuilderX内予览index.jsp 时,出现如下错误An error occurred at line: 34 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java:61: Class MyJsp.DBconn not found.
                    MyJsp.DBconn DBconn = null;
                         ^
    An error occurred at line: 34 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java:64: Class MyJsp.DBconn not found.
                        DBconn= (MyJsp.DBconn)
                                      ^
    An error occurred at line: 34 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java:69: Class MyJsp.DBconn not found.
                                DBconn = (MyJsp.DBconn) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "MyJsp.DBconn");
                                               ^
    Note: C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.
    3 errors, 2 warnings  于是我在index.asp中删掉 line: 34 中的代码 <jsp:useBean id="DBconn" scope="page" class="MyJsp.DBconn"/> 可又报如下错误,请问是什么回事,我该怎样解决这问题啊?使留言本能正常打开啊?谢谢.报错如下
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred between lines: 123 and 173 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled3\Tomcat\work\WebModule1\1148\1\index$jsp.java:60: Undefined variable or class name: DBconn
                      Connection Conn=DBconn.GetConn();
                                      ^
    Note: C:\Documents and Settings\007\jbproject\untitled3\Tomcat\work\WebModule1\1148\1\index$jsp.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.
    1 error, 2 warnings
      

  2.   

    没办法,小弟只有把整个jsp留言本程序传上来了,请大侠一定帮忙看看,先谢了.
    下载地址 http://www.jzfybjy.com/liou/sccx/uploadfile/1148.rar
    我先在控制面版处连好数据源guestbook.mdb,然后在jbuilderX内予览index.jsp 时,出现如下错误An error occurred at line: 34 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java:61: Class MyJsp.DBconn not found.
                    MyJsp.DBconn DBconn = null;
                         ^
    An error occurred at line: 34 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java:64: Class MyJsp.DBconn not found.
                        DBconn= (MyJsp.DBconn)
                                      ^
    An error occurred at line: 34 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java:69: Class MyJsp.DBconn not found.
                                DBconn = (MyJsp.DBconn) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "MyJsp.DBconn");
                                               ^
    Note: C:\Documents and Settings\007\jbproject\untitled5\Tomcat\work\WebModule1\1148\1\index$jsp.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.
    3 errors, 2 warnings  于是我在index.asp中删掉 line: 34 中的代码 <jsp:useBean id="DBconn" scope="page" class="MyJsp.DBconn"/> 可又报如下错误,请问是什么回事,我该怎样解决这问题啊?使留言本能正常打开啊?谢谢.报错如下
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred between lines: 123 and 173 in the jsp file: /1148/1/index.jspGenerated servlet error:
    C:\Documents and Settings\007\jbproject\untitled3\Tomcat\work\WebModule1\1148\1\index$jsp.java:60: Undefined variable or class name: DBconn
                      Connection Conn=DBconn.GetConn();
                                      ^
    Note: C:\Documents and Settings\007\jbproject\untitled3\Tomcat\work\WebModule1\1148\1\index$jsp.java uses or overrides a deprecated API.  Recompile with "-deprecation" for details.
    1 error, 2 warnings