Skip to content

Navigation Menu

Sign up
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]]

Clone this wiki locally

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