I think I am beginning to understand this plugin :) One issue that I am stuck at is that, assuming I have only 1 class com.struts.example.action.AccountController , then http://localhost:8080/myapp/account and http://localhost:8080/myapp/account/1 ( maps to show ) works.
But the moment I have a sub controller com.struts.example.action.account.LogoutController , then http://localhost:8080/myapp/account/1 ==> # There is no Action mapped for namespace /account and action name 1. ( though http://localhost:8080/myapp/account and http://localhost:8080/myapp/account/logout still works ) Thanks! Jeromy Evans - Blue Sky Minds wrote: > > rakeshxp wrote: >> >> >> Jeromy Evans - Blue Sky Minds wrote: >> >>> This is a approach is fine. The annotations are a feature of CodeBehind >>> in 2.1 (used by CodeBehind to create the configuration) >>> Note that CodeBehind will be replaced by the ConventionPlugin in 2.2ish >>> but the annotations won't need to change (much...). >>> >>> >> >> Regarding annotations, is it given higher preference than Codebehind? So >> for >> example, can I create a LogoutController in >> com.struts.example.action.xyz.LogoutController ( instead of >> com.struts.example.action.account.LogoutController ) and have this >> annotation? >> @Namespace(value="/account/logout") >> >> Thanks! >> >> >> > > Yes. The CodeBehind plugin checks for the presence of the annotation > when generating the namespace and gives precedence to the annotation. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts-2-%2B-Rest-URLs-tp19179856p19183626.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]