开发者

upgrading struts 2 jar

开发者 https://www.devze.com 2023-02-12 03:12 出处:网络
In a Struts 开发者_开发百科2 based project, one of the jar files i am using is struts2-core-2.0.14.jar, and when i removed this jar and replaced this with struts2-core-2.1.8.1.jar the application fail

In a Struts 开发者_开发百科2 based project, one of the jar files i am using is struts2-core-2.0.14.jar, and when i removed this jar and replaced this with struts2-core-2.1.8.1.jar the application fails to start.


Most Probable, as far as i understand, the problem is with the filter class declared in web.xml

For the version of struts2.0.x,The class "org.apache.struts2.dispatcher.FilterDispatcher" is used as filter.

For the version of struts2.1.x,The class "org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter" is used as filter.

For more inform, please refer http://www.mkyong.com/struts2/difference-between-struts-2-filterdispatcher-and-strutsprepareandexecutefilter/

0

精彩评论

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