The wildcard support is limited to *, since (Method1|Method2|Method3)
is actually a regex, not a wildcard.
I agree that allowed-methods ought to limit the wildcard matching.
Can you file a JIRA ticket for this?
Thanks,
John
On Jan 4, 2012, at 12:00 PM, Andreas Sachs wrote:
Hi John,
thanks for the clarification.
But to come back to my original question:
Why is <allowed-methods> not available for wildcard method
invocation? Even you expected that it is available (your first post).
Allowed-methods would be a good possibility to limit the wildcard to
some method names.
Or is there another possibility to do something like this:
<action name="(Method1|Method2|Method3)Crud" class="example.Crud"
method="{1}">
i expected:
<action name="*Crud" class="example.Crud" method="{1}">
<allowed-methods>Method1,Method2,Method3</allowed-methods>
Thanks for your work
Andi
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org