struts2.3升级struts2.5问题记录

版本变化

struts2的版本号从2.3.33升级到2.5.18

修改web.xml

<filter>
    <filter-name>struts2Filterfilter-name>
    
    
    <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilterfilter-class>
filter>

修改struts.xml

<constant name="struts.enable.DynamicMethodInvocation" value="true" />
<package name="platform" namespace="" extends="struts-default">
    
    <global-allowed-methods>regex:.*global-allowed-methods>
package>
<package name="ajax" namespace="" extends="json-default">
    
    <global-allowed-methods>regex:.*global-allowed-methods>
package>

修改jsp标签



<s:iterator value="list" var="l">s:iterator>


<s:set var="key" value="value" />

你可能感兴趣的:(struts2.3升级struts2.5问题记录)