Created
September 5, 2009 15:36
-
-
Save tomgullo/181442 to your computer and use it in GitHub Desktop.
put params into request object using groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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