controllerName
Purpose
Returns the name of the currently executing controller.Examples
class BookController {
def list = {
log.info "Executing within controller $controllerName" render(view:actionName)
}
}
(Quick Reference)
controllerNamePurposeReturns the name of the currently executing controller.Examples
DescriptionReturns the name of the currently executing controller which is dictated by the URL mappings |
Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet APITag LibrariesTags |