Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added constant tip.

...

Struts 2 has a setting (which can be set to true or false in struts.properties) called devMode (= development mode). When this setting is enabled, Struts 2 acts much friendlier, which can significantly speed up development.

Tip

You can also set this constant in your struts.xml file: <constant name="devMode" value="false" />

What does it do ?

  • When enabled, Struts 2 will reload your resource bundles on every request (meaning you can change your .properties files, save them, and see the changes reflected on the next request).
    Note: this option can also be set standalone via struts.i18n.reload = true

...