Skip to content

Navigation Menu

Sign up
webdevwilson edited this page Oct 22, 2010 · 8 revisions

what can you do?

the following variables are available in mapped blocks:

  • application - Map<String, Object>
  • request - HttpServletRequest
  • response - HttpServletResponse
  • session - Graffiti.Session
  • params - Map<String, List of String>>
 @Get('/redirecttohello')
 def redirectToHello() {
 response.sendRedirect('/hello')
 }
 @Get('/print/param')
 def printParam() {
 "the params are ${params}"
 }

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /