You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ahmed (JIRA)" <ji...@apache.org> on 2013/10/04 17:31:42 UTC

[jira] [Commented] (WW-4212) Struts DMI no longer works

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

Ahmed commented on WW-4212:
---------------------------

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)