关于Struts2中web.xml中配置问题

作为初学者,Struts2中web.xml中配容易出现问题,国内大部分书籍教程,对class配置还是过去的,并没有说明框架内容发生改变

特别说明

如果是2.1.3之前的版本,用org.apache.struts2.dispatcher.FilterDispatcher,
否则,用org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter。
从Struts2.1.3开始,将废弃ActionContextCleanUp过滤器,而在StrutsPrepareAndExecuteFilter过滤器中包含相应的功能。
作如下配置:


关于Struts2中web.xml中配置问题_第1张图片
图片发自App

你可能感兴趣的:(关于Struts2中web.xml中配置问题)