Yeah, that's about what I'd come up with too (unless I'm misunderstanding you, this sounds like my option 1.)
That'll work I guess, but I was hoping not to have to muck up all my method names (e.g., getWhatwouldordinarilybeacamelcasename(), getWHATWOULDORDINARILYBEACAMELCASENAME()) if there's another way. Thanks, Bill > -----Original Message----- > From: Jeromy Evans [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 19, 2007 6:10 PM > To: Struts Users Mailing List > Subject: Re: [s2] Case-insensitive request parameter binding > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]