On Monday 27 April 2009 01:11:13 am Musachy Barroso wrote:
> ok changes are in, and the doc has been updated:
>
> http://cwiki.apache.org/confluence/display/WW/convention+plugin#conventionplugin-apply...@actionand@Actionsattheclasslevel
>
> give it a try and let me know. @Actions and @Action can now be applied
> to classes. if an "execute" method is defined in the class, it will be
> used as the target method(can be overridden by DMI at runtime),
> otherwise the target method will be null (and it gets determined at
> runtime by REST or DMI)
I have now found some time to test it and it appears it's not working the same
way as actions defined in struts.xml with respect to wildcard-patterns.
For example, say you have the following in struts.xml:
<action name="user_*" class="userAction" method="{1}">
How do I accomplish the same thing using annotations?
--
Andreas Joseph Krogh <[email protected]>
Senior Software Developer / CEO
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Rosenholmveien 25 | know how to do a thing and to watch |
1414 TrollÄsen | somebody else doing it wrong, without |
NORWAY | comment. |
| |
Tlf: +47 24 15 38 90 | |
Fax: +47 24 15 38 91 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]