Versions Compared

Key

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

...

From 2.1.9+ regular expressions can be defined defined in the action name. To use this form of wild card, the followign constants must be set:

Code Block
xml
xml

<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.patternMatcher" value="regex" />

The regular expressions can be in two forms, the simplest one is {FIELD_NAME}, in which case the field with the FIELD_NAME in the action will be populated with the matched text, for example:

...