I have a g:form in my GSP with field names like "email-address", "passwd", and "passwd-confirm".
I also have a Command object with properties like "email", "password", and "passwordConfirm".
In my controller action I would like Grails to bind the form fields to a new Command object:
def register(RegistrationCommand registration) {
// do something with registration.email, registration.password, etc.
}
It looks like Grails is trying to bind request parameters to the Command object by name. Is there any way I can customize that binding so my form params can bind to Command object properties whose names don't match?