which filter class to choose inside <filter-class> tag in struts2
I have one small doubt.. In Struts2, inside web.xml of tag, we will choose some filter name. While searching in examples, I have came across with 2 types开发者_运维问答 of filters using inside that tag.. They are
- org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- org.apache.struts2.dispatcher.FilterDispatcher
So, now Im in a confusion which one to use in what condition?? Waiting for your replies..
Harishwar
AS already described FilterDispatcher has been Deprecated StrutsPrepareAndExecuteFilter Handles both the preparation and execution phases of the Struts dispatching process
StrutsPrepareAndExecuteFilter
精彩评论