我打算refreshModelBeforeResult
按照 Struts2文档中的建议使用,但是我很困惑这个属性是否可以在Action
类或struts.xml
. 除了我在下面尝试过的之外还有什么
<action name="myAction" class="com.stuff.MyActionClass" method="myMethod">
<result name="myHome" type="tiles">MyHome</result>
<interceptor-ref name="basicStack" />
<interceptor-ref name="params"/>
<interceptor-ref name="modelDriven">
<param name="refreshModelBeforeResult">true</param>
</interceptor-ref>
</action>