Thanks Nico. Does it happen consistently for you, or it's only on certain properties?
- John > -----Original Message----- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Friday, June 18, 2004 11:01 AM > To: Struts Users Mailing List > Subject: Re: <bean:write> property has no getter method > > > > I've had such troubles. I don't know if it comes from struts > (common-beanutils) way to introspect object to discover > accessor methods, or if javaBeans spec describes it so. I've > notice you will get such errors when you define getter > return type != setter param type or have multiple setters > with various parameter type. > > I've also noticed this seems to work better under jdk 1.4. > > To solve this, I'd suggest to rename incompatible setters to > setAgeAsInt(int), so that javabean 'Age' property is > strictly defined as beeing of type int. > > > Nico. > > > > Hi, > > > > I ran into "Property <myNestedProperty> has no getter method" > > errors when running my application under JDK 1.3.1. > > > > Here's some background information: > > - Happens on <bean:write>. > > - I'm using nested property, and the last property on the > chain has one > > getter and two setter (e.g. getAge:Integer, setAge(int), > setAge(Integer)) > > - Error seems to only happen on certain properties; while > other properties > > are ok. > > - The application is compiled under JDK 1.4.1, and run well there. > > - Windows 2000, and I'm testing on WLS 8.1 and 7.0sp2. > > > > I think this might have something to do with how Struts is using > > introspection or maybe there's a difference between the two > JDK versions. > > > > Does anyone know the possible reason here? > > > > Thanks, > > John > > > > > > > > > > The contents of this e-mail are intended for the named > addressee only. It > > contains information that may be confidential. Unless you > are the named > > addressee or an authorized designee, you may not copy or > use it, or disclose > > it to anyone else. If you received it in error please > notify us immediately > > and then destroy it. > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > Our name has changed. Please update your address book to the > following format: "[EMAIL PROTECTED]". > > This message contains information that may be privileged or > confidential and is the property of the Capgemini Group. It > is intended only for the person to whom it is addressed. If > you are not the intended recipient, you are not authorized > to read, print, retain, copy, disseminate, distribute, or > use this message or any part thereof. If you receive this > message in error, please notify the sender immediately and > delete all copies of this message. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]