(Quick Reference)

1. controllerName

1.1. Purpose

Returns the name of the currently executing controller

1.2. Examples

class BookController {

    def list() {
        log.info "Executing within controller $controllerName"

        render(view: actionName)
    }
}

1.3. Description

Returns the name of the currently executing controller which is dictated by the URL mappings