[
https://issues.apache.org/jira/browse/WW-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-4143.
-------------------------------
Resolution: Won't Fix
Assignee: Lukasz Lenart
As from 2.3.15.3 you can disable {{action:}} prefix
> Add actionMapper that ignores prefixes
> --------------------------------------
>
> Key: WW-4143
> URL: https://issues.apache.org/jira/browse/WW-4143
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Actions
> Reporter: Tom Briers
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 2.3.16
>
>
> The prefixes 'method:' and 'action:' are treated specially in struts2.
> The treatment for 'method:' can be deactivated by
> 'useDynamicInvocation=false' but the treatment of 'action:' cannot be
> deactivated.
> I think it would be useful if the following actionmapper is included in the
> library so people can easily deactivate all special treatment:
> {code}
> package org.apache.struts2.dispatcher.mapper;
> import org.apache.struts2.util.PrefixTrie;
> public class IgnorePrefixActionMapper
> extends DefaultActionMapper
> {
> public IgnorePrefixActionMapper()
> {
> super();
> // remove any injected prefix treatments
> prefixTrie = new PrefixTrie();
> }
> }
> {code}
> The reason I want to disable all this is that I do not want anyone to change
> the behavior of the implemented application by using these techniques.
--
This message was sent by Atlassian JIRA
(v6.1#6144)