You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2020/05/29 05:56:17 UTC
[struts-site] branch action-prefix-clearance created (now 62578f1)
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a change to branch action-prefix-clearance
in repository https://gitbox.apache.org/repos/asf/struts-site.git.
at 62578f1 Adds a note about action: prefix configuration
This branch includes the following new commits:
new 62578f1 Adds a note about action: prefix configuration
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[struts-site] 01/01: Adds a note about action: prefix configuration
Posted by lu...@apache.org.
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 <lu...@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`