struts2从2.2.3升级到2.3.15.1步骤

1. 删除以下jar包
asm-3.1.jar
asm-commons-3.1.jar
commons-beanutils-1.7.0.jar
commons-fileupload-1.2.2.jar
commons-io-1.3.2.jar
commons-lang-2.3.jar
commons-logging-1.1.jar
ognl-3.0.1.jar
struts2-convention-plugin-2.2.3.jar
struts2-core-2.2.3.jar
struts2-embeddedjsp-plugin-2.2.3.jar
struts2-spring-plugin-2.2.3.jar
wsdl4j-1.6.1.jar
xwork-core-2.2.3.jar
 
2. 增加以下jar包
asm-3.3.jar
asm-commons-3.3.jar
commons-beanutils-1.8.0.jar
commons-fileupload-1.3.jar
commons-io-2.0.1.jar
commons-lang-2.4.jar
commons-lang3-3.1.jar
commons-logging-1.1.3.jar
ognl-3.0.6.jar
struts2-convention-plugin-2.3.15.1.jar
struts2-core-2.3.15.1.jar
struts2-jasperreports-plugin-2.3.15.1.jar
struts2-spring-plugin-2.3.15.1.jar
wsdl4j-1.6.3.jar
xwork-core-2.3.15.1.jar
 
3.struts.xml
设置devMode为false。
 
4.所有validation.xml的声明需要修改为:
 
        "-//Apache Struts//XWork Validator 1.0.2//EN"
        "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">

你可能感兴趣的:(框架)