diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java index f1fc41a0fa..678a6f30ee 100644 --- a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java +++ b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java @@ -320,7 +320,7 @@ private void handleDynamicMethodInvocation(ActionMapping mapping, String name) { mapping.setName(actionName); if (allowDynamicMethodCalls) { - mapping.setMethod(actionMethod); + mapping.setMethod(cleanupActionName(actionMethod)); } else { mapping.setMethod(null); }