开发者

which filter class to choose inside <filter-class> tag in struts2

开发者 https://www.devze.com 2023-01-15 11:10 出处:网络
I have one small doubt.. In Struts2, inside web.xml oftag, we will choose some filter name. While searching in examples, I have came across with 2 types开发者_运维问答 of filters using inside that ta

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

精彩评论

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