Thanks for the response. I perused the JavaBeans spec, but I couldn't find a special rule for when the first capital is in the second position. Perhaps you remember what it is off the top of your head? ;-) Anyway, I've tried changing the case around on the method name to see if I can get some method to match xOffset. Everything I've tried except for getXOffset will throw a servlet exception, and using getXOffset returns null. I've tried using the method names, getxoffset, getXoffset, getxOffset, with corresponding set methods of course.
I can easily get around this problem, but it seemed and still seems strange so I wanted to bring it up. Thanks for the help, Dave > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > On Fri, 14 Feb 2003, Durham David Cntr 805CSS/SCBE wrote: > > > Date: Fri, 14 Feb 2003 15:57:28 -0600 > > From: Durham David Cntr 805CSS/SCBE <[EMAIL PROTECTED]> > > Having a problem with digester.setProperties(String). > > > > I have the following xml doc: > > > > <root> > > <element xOffset="squadron"/> > > </root> > > > > > > The property does not get set in the bean unless the "x" in > xOffset is > > capitalized, i.e., "XOffset" which doesn't seem right. > > > > Is this a bug? > > > > No, it's not. Welcome to the wonderful world of the > JavaBeans rules on > converting property names to getter and setter method names. > > Normally, property names are expressed in "mixedCase" style, > starting with > a lower case letter, and this would get converted into a call on a > setMixedCase() method. For property names where the > getter/setter method > is all upper case (i.e. getURL/setURL), there are some > special rules; this > is also true when the first capital is in the second position > (as it is in > your case). > > The details of the naming patterns are in the JavaBeans Specification, > which you can get from: > > http://java.sun.com/products/javabeans/ > > Craig > > --------------------------------------------------------------------- > 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]