Child pages
  • Make Struts throw exceptions on missing properties, or log them

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Start by setting devMode to true:

Code Block
xml
xml
<constant name="struts.devMode" value="true"/>

To log missing properties, then:

Code Block
xml
xml
<constant name="struts.ognl.logMissingProperties" value="true" />

To throw exceptions when a property is missing, or when an exception occurs while evaluating an expression(this will break the pages if there is a problem on the expression):

Code Block
xml
xml
<constant name="struts.el.throwExceptionOnFailure" value="true" />