This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch action-prefix-clearance in repository https://gitbox.apache.org/repos/asf/struts-site.git
commit 62578f15ebcae59e32a5ce915c168befd5978457 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Fri May 29 07:56:06 2020 +0200 Adds a note about action: prefix configuration --- source/core-developers/action-mapper.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/core-developers/action-mapper.md b/source/core-developers/action-mapper.md index 8c8ffa1..ac56d62 100644 --- a/source/core-developers/action-mapper.md +++ b/source/core-developers/action-mapper.md @@ -43,6 +43,14 @@ In addition to these four prefixes, this mapper also understands the action nam the extension form (eg: `foo!bar.action`) or in the prefix form (eg: `action:foo!bar`). This syntax tells this mapper to map to the action named `foo` and the method `bar`. +> NOTE: By default support for the `action:` prefix has been disabled since Struts 2.3.15.3, please use the below +> constants to enable it: +> - using `struts.properties`: +> `struts.mapper.action.prefix.enabled=true` +> - or using `struts.xml`: +> `<constant name="struts.mapper.action.prefix.enabled" value="true"/>` +> See [S2-018](https://cwiki.apache.org/confluence/display/WW/S2-018) for more details + ### Method prefix With method-prefix, instead of calling baz action's `execute()` method (by default if it isn't overridden in `struts.xml`