1
struts.properties
文件中的任何Struts常量是否也可以在struts.xml
中指定?这将使我们能够与设置环境变量是否可以在struts.xml中指定任何struts属性?
例如,可以在属性以下常量文件中的值:
struts.ognl.logMissingProperties=true
struts.el.throwExceptionOnFailure=false
在struts.xml
为以下改为指定?
<constant name="struts.ognl.logMissingProperties" value="${env.logmissing}"/>
<constant name="struts.el.throwExceptionOnFailure" value="${env.throwExc}"/>