struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmed (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4212) Struts DMI no longer works
Date Fri, 04 Oct 2013 15:33:42 GMT

    [ https://issues.apache.org/jira/browse/WW-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13786244#comment-13786244
] 

Ahmed edited comment on WW-4212 at 10/4/13 3:32 PM:
----------------------------------------------------

Were having issues related to using "method=foo".  We are using the Rest Plugin.  It seems
that in both the RestActionMapper and the DefaultActionMapper there is a allowDynamicMethodCalls
boolean.  When we set DMI to true in struts.xml, the allowDynamicMethodCalls in the DefaultActionMapper
is false, and therefore the method never gets set on the ActionMapping.  So instead of calling
foo(), it calls the index() method in our case.

Line 193 in DefaultActionMapper :
  if (allowDynamicMethodCalls) {
                            mapping.setMethod(key.substring(METHOD_PREFIX.length()));
                        }



was (Author: aelmeswari):
Were having issues related to using "method=foo".  We are using the Rest Plugin.  It seems
that in both the RestActionMapper and the DefaultActionMapper there is a allowDynamicMethodCalls
boolean.  When we set DMI to true in struts.xml, the allowDynamicMethodCalls in the DefaultActionMapper
is false, and there for the method never gets set on the ActionMapping.  So instead of calling
foo(), it calls the index() method in our case.

> Struts DMI no longer works
> --------------------------
>
>                 Key: WW-4212
>                 URL: https://issues.apache.org/jira/browse/WW-4212
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Configuration
>    Affects Versions: 2.3.15.2
>         Environment: Apache/Tomcat
>            Reporter: Greg Huber
>             Fix For: 2.3.15.3
>
>
> Hello,
> I have tried 2.3.15.2 and the dmi no longer works.
> In my struts.properties file I have this:
> struts.enable.DynamicMethodInvocation=true
> I ahve also tried:
> <constant name="struts.enable.DynamicMethodInvocation" value="true"/>
> in the struts.xml file
> Cheers Greg.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message