Skip to content

Instantly share code, notes, and snippets.

@tomgullo
Created September 5, 2009 15:36
Show Gist options
  • Save tomgullo/181442 to your computer and use it in GitHub Desktop.
Save tomgullo/181442 to your computer and use it in GitHub Desktop.
put params into request object using groovy
def user_params = ['firstName', 'lastName']
//put params in request in case of errors
for (e in params) {
if (e.key in user_params) {
request."$e.key" = e.value
}
}
//in view, value="${request?.firstName}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment