Bruyn, Bill-p6141c wrote:
Or maybe I could replace the ParametersInterceptor with one that used
reflection to figure out which property to set, ignoring case. Do
either of those options seem right to anyone else? Something like
//for each request parameter
//for each getter method on the requested action
//if beanPropertyName.equalsIgnoreCase(parameterName)
//valueStack.setValue(propertyName,
parameterValue)
I would leave the ParametersInterceptor as-is, but place a custom
interceptor in the stack prior to it. The custom interceptor could
change all request parameter names to camelcase or lowercase.
You should also be able to achieve the same effect with a filter too.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]