2013/9/30 Christoph Nenning <[email protected]>:
> Finally I continued with my strict DMI tests.
>
> While creating a sample app I discovered that the above was wrong. It is a
> CSRF protection interceptor in the other app which made me think that !add
> was blocked by the framework.
>
>
> But I could not get strict DMI working at all. Only execute() got invoked,
> no matter what I tried.
>
>
> Would you please have a look at the sample app and tell me what I am doing
> wrong?
>
> https://github.com/wolpi/struts2-samples/tree/master/dmiandactionmappingtest
<constant name="struts.enable.DynamicMethodInvocation" value="true"/>
It must be true, if false whole DMI logic is off.
<action name="hello"
class="struts2.samples.dmiandactionmappingtest.actions.HelloAction">
Removed method={1} as you don't use "*" mapping
<allowed-methods>add</allowed-methods>
In this way you define allowed methods.
> Next question is: how to use strict DMI with convention plugin?
Not yet, I will add it soon.
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]