FilterDispatcher is deprecated! - What is the replacement for FilterDispatcher?

struts2

Solution

I'd recommend following the link and doing what it says:

<filter>
    <filter-name>struts2</filter-name>

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

Problem

How to avoid the following error? I am implementing Spring-Security on Struts2, the application runs perfectly but the following message will be shown on server log. ``` 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 ```

Original source