Repository navigation
Implicit variables
webdevwilson edited this page Oct 22, 2010
·
8 revisions
what can you do?
@Get('/redirecttohello') def redirectToHello() { response.sendRedirect('/hello') } @Get('/print/param') def printParam() { "the params are ${params}" }
the following variables are available in mapped blocks:
- application - map [string, object]
- request - HttpServletRequest
- response - HttpServletResponse
- session - Graffiti.Session
- params - map [string, list[string]]