struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeromy Evans <jeromy.ev...@blueskyminds.com.au>
Subject Re: REST plugin URL syntax
Date Tue, 15 Jul 2008 04:03:05 GMT
Mike Watson wrote:
>
> BTW, if I want a controller to work in multiple namespaces do I need
> to declare seperate packages in struts.xml instead of just relying on
> the @Namespace annotation?
>
> Thanks again for all your help.
>
>   

Unfortunately when using Codeheind, you do have to create a new package 
for each namespace. The easiest way to do that is to extend your action 
and add a @Namespace for each subclass.  It's wasteful but works.

The Convention Plugin that (eventually) supersedes Codeheind does 
include a @Namespaces() annotation.

Glad I could help!



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message