There are some variables and closures in groovlet like request, response, out, forward, redirect...
Is it possible to bind my own variables and closures to groovlet automatically?
I want this feature for ${escapeHtml(params.value)} like things.
GroovyServletprovides a hook for doing exactly this:setVariables. Create a subclass ofGroovyServletthat overrides this method and populate theServletBindingwith whatever you want.