kitten

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            11 隨筆 :: 0 文章 :: 0 評論 :: 0 Trackbacks

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

          <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class>

          會出現
          ***********************************************************************
          *                               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 Struts2.3.16.1, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilterand StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one..即,從Struts 2.1.3起已被標注為過時的,改用StrutsPrepareAndExecuteFilter

          解決方法,將web.xml上述代碼改為:

          復制代碼


          <
          filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> </filter>
          來自:http://www.cnblogs.com/babybluevino/
          posted on 2014-04-08 20:23 云③+_+輸 閱讀(546) 評論(0)  編輯  收藏 所屬分類: struts2
          主站蜘蛛池模板: 息烽县| 枣强县| 冀州市| 民乐县| 天津市| 于田县| 汝城县| 漾濞| 清水河县| 吴旗县| 桦甸市| 竹山县| 乐山市| 贵州省| 曲水县| 哈巴河县| 元氏县| 盖州市| 淮安市| 娱乐| 延边| 蓬溪县| 三门峡市| 淮北市| 普陀区| 商都县| 和静县| 兴山县| 青田县| 麦盖提县| 贵港市| 廊坊市| 古蔺县| 香港| 大渡口区| 武邑县| 任丘市| 岢岚县| 长宁区| 富锦市| 乐平市|