Reputation: 2239
I saw some examples using FilterDispatcher, while others using StrutsPrepareAndExecuteFilter, in web.xml.
May I know what is the difference between org.apache.struts2.dispatcher.FilterDispatcher
and org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
?
Thank you.
Upvotes: 1
Views: 6673
Reputation: 5512
FilterDispatcher has been Deprecated since Struts 2.1.3
Deprecated. Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilter and StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one
You should use StrutsPrepareAndExecuteFilter
Upvotes: 1