But you always map a url to a method, an action is not executed, a
method is. Even if you don't specify a method, "execute" will be used
by default.

musachy

On Sun, Apr 26, 2009 at 4:06 PM, Andreas Joseph Krogh
<[email protected]> wrote:
> On Sunday 26 April 2009 09:24:38 pm Musachy Barroso wrote:
>> The annotation was allowed to be applied to classes in 2.1.6, but it
>> was ignored. For 2.1.7 it will be allowed only in methods.There are no
>> advantages in having multiple @Action annotations at the class level,
>> instead of the method level.
>
> I dissagree. I find it very useful to be able to alias actions with different 
> names/patters for the same Action-class and use its methods for operating on 
> them. I've yet to find it useful to map actions to a method, it's too coupled 
> IMHO. This limitation one of the main reasons I still map my actions in 
> struts.xml.
>
> --
> 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]
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to