struts2 filterdispatcher is deprecated please use the new filters

struts2 filterdispatcher is deprecated please use the new filters

Hi,

We have a Struts 2 based application and it is giving following error on starup:

struts2 filterdispatcher is deprecated please use the new filters

***********************************************************************
*                               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            *
*                                                                     *
***********************************************************************

How to resolve this warning?

Thaks

View Answers

December 25, 2014 at 6:34 AM

Hi,

You have to use the latest filter dispatcher to resolve the issue.

Here is the code you should use the following code in web.xml file:

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

Check more tutorials of Struts 2.

Thanks


December 29, 2014 at 11:00 AM

Hi,

You should use the following code in the web.xml file:

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

Thanks

Ads









Related Tutorials/Questions & Answers:
struts2 filterdispatcher is deprecated please use the new filters
on starup: struts2 filterdispatcher is deprecated please use the new filters...struts2 filterdispatcher is deprecated please use the new filters  Hi... <<< is deprecated! Please use the new filters
struts2 filters
struts2 filters  hi i created a filter,if the session is null then it should to go error page that ur not authorized to access, nw my question is how to use means how to call filter to do the task pls help me
Advertisements
New to struts2
New to struts2   Please let me know the link where to start for struts 2 beginners   Struts 2 Tutorials
New to Java Please help
New to Java Please help  Hi I need help, can some one help me with this. I am currently doing a project. drop me an email to my email address. Thanks!   If you are new in java, then you need to learn core java
Struts2
Struts2  Hi I am using struts 2,In struts2 architecture ,I couldn't... the request comes into the picture,the filterdispatcher consult the ActionMapper... the filterdispatcher consult the ActionProxy.plz tell me
Filters
Filters  Where we use Filters in the project? give one example code, how to use Filters to provide security for the application
Java making a method deprecated
. * * @deprecated use {@link new()} instead. */ @Deprecated public void old... Java application. Though, it is not a correct way to use a deprecated class...Java making a method deprecated  java making a method deprecated
What is deprecated?
What is deprecated?  What is mean by deprecated element, method or class?   What is deprecated? Deprecated means condemned. A object... is showing a deprecated message that means it is either outdated or has been
struts2
struts2  hi all i am going to run struts2.x program i got this error... java.lang.ClassNotFoundException: javassist.ClassPool   Please visit the following link: Struts2 Tutorials
Struts2
Struts2  i want select multiple items from select list in struts2.when i did like that the two selected values must saved into databse in two diffirent rows.pls provide any one code for this i am new to Struts2
struts2
struts2  sir.... i am doing one struts2 application and i have to make pagination in struts2....how can i do
STRUTS2
STRUTS2  sir but my question is using ApplicationResources.properties in STRUTS 2.i cant get the values into my application.but in the exmple given at roseindia,u cant use the properties file.i use actionclass-validation.xml
struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file
struts2
struts2   Sir when i have run my struts 2 web application,every time i get error " request resources is not available",,,what is this,,,plz help me
Struts2
Struts2  java.lang.NullPointerException org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69... exception while submitting the update form in struts2 I am using tomcat6.0 ... its
Struts2
Struts2  Hi, I need a solution for displaying success message in same page in struts2. how to redirect same page in struts2.Please help me.   hi friend, To know how redirect action can be done in struts 2 you can go
making use java image filters
making use java image filters  while making use any functions built in jerry's filter in java application i get a NullPointerException.. I dont know the reason for this.. please give me a solution
UILineBreakModeWordWrap is deprecated
UILineBreakModeWordWrap is deprecated in IOS 6.0. What is the latest code to be used for this? Thanks   Hi, If you use the following code... is the list of new enums defined in latest version of Xcode: enum
Struts2 Internationalization
Struts2 Internationalization  Hi How to use i18n functionality for indian languages in struts2 ? I am able to use french and english but none of the Indian languages. Pls help. Regards Vaishnavi   Please visit
org.hibernate.dialect.PostgreSQLDialect is deprecated
org.hibernate.dialect.PostgreSQLDialect is deprecated  HI, org.hibernate.dialect.PostgreSQLDialect is deprecated Which dialect to use? Thanks   Hi, You can use any of the following
org.hibernate.dialect.PostgreSQLDialect is deprecated
org.hibernate.dialect.PostgreSQLDialect is deprecated  HI, org.hibernate.dialect.PostgreSQLDialect is deprecated Which dialect to use? Thanks   Hi, You can use any of the following
org.hibernate.dialect.PostgreSQLDialect is deprecated
org.hibernate.dialect.PostgreSQLDialect is deprecated  HI, org.hibernate.dialect.PostgreSQLDialect is deprecated Which dialect to use? Thanks   Hi, You can use any of the following
How to use struts2 grid with form submission
How to use struts2 grid with form submission  Hello, I've already... to show filtered data in grid. (Please also careful that i dont want to use grid's... in Struts2 jQGrid. By default when page loads, Struts2 jQGrid already have action url
STRUTS2 Dynamic data is not updated
STRUTS2 Dynamic data is not updated  Hi All, I am new in struts and try to make an application in struts2. Need help on dynamic data content..., please let me know if i miss some important part of struts2 I used below tags
STRUTS2 Dynamic data is not updated
STRUTS2 Dynamic data is not updated  Hi All, I am new in struts and try to make an application in struts2. Need help on dynamic data content..., please let me know if i miss some important part of struts2 I used below tags
UIKeyboardBoundsUserInfoKey is deprecated
UIKeyboardBoundsUserInfoKey is deprecated  On running my application i am getting a warning as given below... " UIKeyboardBoundsUserInfoKey is deprecated " What is the cause of it?? and what should i use instead
struts2 excel downloads
struts2 excel downloads  hi sir, am new to the real time... db table dynamically by using Hibernate persistence logic.......am using struts2 and hibernate3.2 please help me
servlet filters
; description: ------------- for filters no need to use <load...servlet filters  Hi Any body please tell me how to work with servlet filters and can u post smple application to search webpage based on input values
struts2 tiles.xml
struts2 tiles.xml  Hi, I want to use .properties file data in tiles.xml file of struts2(2.1.8) application to display title. sample code I have... the text displayed is "getText('home')" not the value "home page" . Please can
Hibernate 5 query deprecated
and way to running query is deprecated. In this tutorial we will learn new...Hibernate 5 query deprecated - What is latest method of running query in Hibernate 5? In Hibernate 5 query has been deprecated and developer should learn
hi,i'am new to Jsp.Can some one please let me know an answer for this question?
hi,i'am new to Jsp.Can some one please let me know an answer for this question?  how do we upload an xml file and validate them against WIPO DTD

Ads