struts2官网地址:http://struts.apache.org/

1.下载strtuts2.5包

2.替换工程中的附件目录文件

a.freemarker-2.3.23.jar

b.log4j-api-2.5.jar

c.ognl-3.1.2.jar

d.struts2-config-browser-plugin-2.5-BETA3.jar

e.struts2-convention-plugin-2.5-BETA3.jar

f.struts2-core-2.5-BETA3.jar

g.struts2-json-plugin-2.5-BETA3.jar

h.struts2-spring-plugin-2.5-BETA3.jar

3.删除原工程“xwork-core-2.3.16.jar”

4.修改web.xml,把“<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>”修改成“<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>”

5.修改jsp的struts标签,新版本里有两处明显区别

a.类似 <s:bean name="com.whb.common.DictItem" id="dictItem" /> 要修改成 <s:bean name="com.whb.common.DictItem" var="dictItem" />

b.类似<s:property value="result" escape="false"/>  要修改成 <s:property value="result" escapeHtml="false"/>