Skip to content
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>
  @Get('/redirecttohello')
  def redirectToHello() {
    response.sendRedirect('/hello')
  }

  @Get('/print/param')
  def printParam() {
    "the params are ${params}"
  }

Clone this wiki locally