Grails Tags

Variables And Scopes

Variables can be defined within a GSP using the set tag:


Variables can also be placed in one of the following scopes:
  • page - Scoped to the current page (default)
  • request - Scoped to the current request
  • flash - Placed within flash scope and hence available for the next request
  • session - Scoped for the user session
  • application - Application-wide scope.
To specify the scope, use the scope attribute:

Logic and Iteration

   <%-- show administrative functions --%>

   <%-- show basic functions --%>