开发者

What is the difference between Struts2 FilterDispatcher and StrutsPrepareAndExecuteFilter?

开发者 https://www.devze.com 2022-12-24 01:33 出处:网络
I saw some examples using FilterDispatcher, while others using StrutsPrepareAndE开发者_StackOverflow社区xecuteFilter, in web.xml.

I saw some examples using FilterDispatcher, while others using StrutsPrepareAndE开发者_StackOverflow社区xecuteFilter, 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消