Customize controller name translation in grails
By default SomeController.groovy
has a controller name of some
. Also, pkg.SomeController
has a controller name of pkg/some
.
Is there a way to plug a custom mechanism for this translation. In my particular instance I want to get rid of the pkg
(it's a long story why I need this)
I can try to use @Controller("name")
but given the number开发者_开发技巧 of existing controllers this is less preferable.
I was wondering if there's a customized URL mapping defined in your Grails project (look at grails-app/conf/*UrlMappings.groovy
)? As far as I understand, the package name shouldn't show up in the URL by default.
精彩评论