http://www.cnblogs.com/babybluevino/archive/2012/11/29/2794732.html

>>> FilterDispatcher <<< is deprecated!

在struts2.3.7下,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 Struts 2.1.3, 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>

FilterDispatcher is deprecated!相关推荐

  1. FilterDispatcher is deprecated! Please use

    2019独角兽企业重金招聘Python工程师标准>>> 在struts2.3.7下,web.xml中使用 会出现 ********************************** ...

  2. FilterDispatcher is deprecated! Please use the new filters!

    将struts2的包从2.1升级到2.3,结果老提示warning如下: *************************************************************** ...

  3. FilterDispatcher is deprecated! 1

    FROM: http://blog.csdn.net/zzf112/article/details/41246665 在struts2.3.7下,web.xml中使用 <filter-name& ...

  4. FilterDispatcher is deprecated! Please use the new filters!

    无意间制造了一个bug...今天自己测试用到的struts2的版本为2.3,和之前项目中用到的版本不一致.没想到出现了这样的界面 查其原因在于: Deprecated. Since Struts 2. ...

  5. 报错警告FilterDispatcher is deprecated! Please use the new filters!

    今天在联系用 jsp + struts2 + jdbc框架进行登录界面开发时,遇到的报错. 1.没有截图,大概是说can not read the path 巴拉巴拉..原因是路径中出现中文. 2.运 ...

  6. FilterDispatcher已被标注为过时解决办法 FilterDispatcher is deprecated!

    一些struts2的教程都是比较早的,当我们基于较新版本的struts2来实现代码的时候,往往会出现一些问题.比如这个警告:FilterDispatcher isdeprecated! 在web.xm ...

  7. Struts 2 FilterDispatcher和StrutsPrepareAndExecuteFilter之间的区别?

    题 在Struts2开发中,许多人问为什么将某些过滤器类声明为" FilterDispatcher "? 其他人宣布" StrutsPrepareAndExecuteFi ...

  8. Struts2 简介

    回顾Struts2的使用过程,网上搜的教程多多少少都会有点问题,重新记录下创建过程,方便查阅. 1.下载Struts2的jar包 下载地址:http://archive.apache.org/dist ...

  9. Struts2入门示例教程

    [试了无数遍,看了无数个帖子,总算找到了一个能运行的] source: http://blog.csdn.net/wwwgeyang777/article/details/19078545/ 回顾St ...

最新文章

  1. .NET英文技术文章导读(2017-02-09)
  2. 【报错】ValueError: not enough values to unpack expected 2, got1
  3. datax mysql replace_DataX-MySQL(读写)
  4. python:小心类实例的属性动态绑定机制
  5. jq中ajax请求跨域,用JQuery实现简单的Ajax跨域请求
  6. Python Imaging Library: ImageSequence Module(图像序列模块)
  7. weblogic部署静态网页
  8. 利用matlab使用窗函数,MATLAB中的窗函数
  9. python不是5的倍数_python – 低于1000的3或5的所有倍数的总和
  10. android最强管理软件root,SuperSU Pro v2.82中文专业版-超强安卓手机root工具
  11. html让光标位置,科技常识:html5中contenteditable 光标_如何设置光标位置
  12. 如何在eclipse配置服务器server (java ee)
  13. js正则表达式 验证非负数
  14. C++ 常指针和指向常量的指针
  15. 淘宝网页白底蓝字显示不正常的修复办法
  16. 支付宝PC扫码支付接入流程及代码示例
  17. hibernate中PO的构造器顺序
  18. 小马哥-----高仿米4拆机 刷机主板多图展示 主板为x77 型号k6 6582芯片 14年底版本
  19. 操作系统和数据库专业单词
  20. 单总线编程介绍(用于DS18B20)

热门文章

  1. Git内部原理之深入解析维护与数据恢复
  2. iOS之深入解析alloc、init与new的底层原理
  3. LeetCode Algorithm 148. 排序链表
  4. 《每日一题》48. Rotate Image 旋转图像
  5. AI Studio 学习 Go 豆瓣电影爬取
  6. ROS Kinetic 与STM32通信,控制一盏LED灯
  7. 【Linux系统编程】POSIX有名信号量
  8. oracle几个状态,oracle启动的四个状态
  9. java继承类型的用法_详解Java中使用externds关键字继承类的用法
  10. android 打印机打印html,Android下通过wifi调用打印机打印