Skip to content

Instantly share code, notes, and snippets.

@tomgullo
Created September 8, 2009 00:23
Show Gist options
  • Save tomgullo/182632 to your computer and use it in GitHub Desktop.
Save tomgullo/182632 to your computer and use it in GitHub Desktop.
send params to grails controller
def send_params = [:]
for (e in request.parameterMap) {
if (e.key & e.key instanceof java.lang.String && e.key in user_params && e.value) {
send_params."${e.key}" = e.value[0]
}
}
<g:link action="" params="${send_params}"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment