Understanding Controllers

  • Jeff Scott Brown
  • Graeme Rocher


A Grails controller is a class that is responsible for handling requests coming in to the application. The controller receives a request, potentially does some work with the request, and finally decides what should happen next. What happens next might include the following:
  • executing another controller action (possibly but not necessarily in the same controller)

  • rendering a view

  • rendering information directly to the response


Data Binding Controller Action Validation Error Domain Class Domain Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Jeff Scott Brown and Graeme Rocher 2013

Authors and Affiliations

  • Jeff Scott Brown
  • Graeme Rocher

There are no affiliations available

Personalised recommendations