Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • struts.mapper.action.prefix.enabled - when set to false support for "action:" prefix is disabled, set to false by default
  • struts.mapper.action.prefix.crossNamespaces - when set to false, actions defined with "action:" prefix must be in the same namespace as current action

Another option is to write your own ActionMapper and completely drop support for "action:" prefix if support for multiple submit buttons isn't used. Consult manual how to write your own ActionMapper.

Note
titleBackward Compatibility

After upgrading to Struts >= 2.3.15.2, applications using the "action:" should still work as expectedwill stop working. You can use above constants to steer that behaviour.

Warning

It is strongly recommended to upgrade to Struts 2.3.15.2, which contains the corrected Struts2-Core library.