The Grails Framework 2.3.8

See the light - agile, industrial strength, rapid web application development made easy

(Quick Reference) # namespace ## Purpose The `namespace` property is optional and defines a namespace for a controller. Multiple controllers may be defined in the same namespace. Multiple controllers may be defined with the same name as long as they are defined in separate packages and are not defined in the same namespace. ## Examples

    // grails-app/controllers/com/app/reporting/PrintingController.groovy
    package com.app.reportingclass PrintingController {    static namespace = 'reports'    // …
    }

    // grails-app/controllers/com/app/reporting/AdminController.groovy
    package com.app.reportingclass AdminController {    static namespace = 'reports'    // …
    }

    // grails-app/controllers/com/app/security/AdminController.groovy
    package com.app.securityclass AdminController {    static namespace = 'users'    // …
    }
See the namespaced controllers docs for more information. | Quick Reference (hide)