我查了类树,哪儿都没有这个函数啊!
奇怪了, 这么多人在看struts in action , 竟然没有人试过这个例子吗?

解决方案 »

  1.   

    getDebug()是struts的函数,在ActionServlet中定义,用于读取ActionServlet中调试标志状态变量debug的值.debug是一个整数类型的值.
    debug的值从配置文件中读取Servlet段中的debug的值.
      

  2.   

    ActionServlet中没有getDebug()这个方法啊?我查了api了,难道这个方法是以前版本的?
    我查的是struts 1.1的,有人知道吗
      

  3.   

    我查底层ActionServlet.java文件有这个方法,也是struts 1.1,你的是不是被该过的版本
    /**
         * Return the debugging detail level for this servlet.
         *
         * @deprecated Configure the logging detail level in your underlying
         *  logging implementation
         */
        public int getDebug() {        return (this.debug);    }
      

  4.   

    看来是在新版本的struts中已经被拿掉了:(这个struts版本也太不稳定了结贴!