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}"/>