Repository navigation
Implicit variables
webdevwilson edited this page Dec 28, 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]]