开发者

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

  1. org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  2. 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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜