zoukankan      html  css  js  c++  java
  • >>> FilterDispatcher <<< is deprecated! Please use the new filters!

    在struts2.3.7下,web.xml中使用

    会出现
    ***********************************************************************
                                  WARNING!!!                            *
                                                                        *
    * >>> FilterDispatcher <<< is deprecated! Please use the new filters! *
                                                                        *
              This can be a source of unpredictable problems!           *
                                                                        *
                 Please refer to the docs for more details!             *
               http://struts.apache.org/2.x/docs/webxml.html            *
                                                                        *
    ***********************************************************************
    原因在于:

    Class FilterDispatcher

    Deprecated. Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilterand StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one
    解决方法,将web.xml上述代码改为:

     <filter>
            <filter-name>struts2</filter-name>
            <filter-class>
                org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
            </filter-class>
            <init-param>
            <param-name>struts.action.extendion</param-name>
            <param-value>action</param-value>
            </init-param>
        </filter>

    转自 http://blog.sina.com.cn/s/blog_7a0d9dca01014fn2.html

  • 相关阅读:
    [转]AJAX POST请求中参数以form data和request payload形式在servlet中的获取方式
    C#文档注释
    VS 单元测试项目,测试的时候运行按钮不可用
    获取泛型类的Type
    Sql 复习(4)
    Sql 复习(3)
    sqlserver的soundex
    sqlserver的trim
    Sql 复习(2)
    糟糕的设计
  • 原文地址:https://www.cnblogs.com/sophine/p/3199289.html
Copyright © 2011-2022 走看看