官方下载的struts包里面,webapps目录下有个struts-documentation.war的文件,我想应该知道哪里能找到了吧。
^_^很隐蔽哦~

解决方案 »

  1.   

    官方下载的struts包里面,webapps目录下有个struts-documentation.war的文件,我想应该知道哪里能找到了吧。
    ^_^很隐蔽哦~
      

  2.   

    晕,CSDN的论坛应该改进下了,解决一下重复提交的问题
    要不楼主还以为我穷得用这种方法要分呢 ^_^
      

  3.   

    欢迎加入J2EEQQ群14672911.你会学到更多东西.
      

  4.   

    今天遇到这个问题,找到这里还是没有答案。
    后来在国外的论坛同样看到此问题:
    http://mail-archives.apache.org/mod_mbox/struts-dev/200510.mbox/%[email protected]%3e
    上面说Debug logging is now handled by commons-logging configuration. 
    据此,可以这样写:
    import org.apache.commons.logging.*;
    Log log=LogFactory.getLog(ActionServlet.class);
    boolean isDebug=log.isDebugEnabled();//判断是否debug状态
    //...
    -----------------------
    另:ActionServlet是HttpServlet的子类,所以也可以这样:
    int debug;
    try {
    debug=Integer.parseInt(servlet.getInitParameter("debug"));
    }catch(Exception ex) {
    debug=0;
    }
    if(debug>0){
    //...
    }//这个贴子是去年的了,还没有人回复,或许高手都挺忙的,不像我等闲人:) 为方便后来人,和寻找更优雅的实现,特此记录.