class BookController {
def list() {
log.info "Executing within controller $controllerName"
render(view: actionName)
}
}
controllerName
Purpose
Returns the name of the currently executing controller
Examples
Description
Returns the name of the currently executing controller which is dictated by the URL mappings