struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yu, John" <John...@compuware.com>
Subject RE: <bean:write> property has no getter method
Date Fri, 18 Jun 2004 16:21:11 GMT
I agree with you on writing "safer" Javabeans, and yes, it
works on JDK 1.4.1.

> last one I read.  You're not supposed to have multiple 
> setters with the
> same name, or matching get/set methods with different types.

Could you point me to the exact place this is documented?

Thanks,
John

> -----Original Message-----
> From: Wendy Smoak [mailto:Wendy.Smoak@asu.edu]
> Sent: Friday, June 18, 2004 12:07 PM
> To: Struts Users Mailing List
> Subject: RE: <bean:write> property has no getter method
> 
> 
> > From: Yu, John [mailto:John.Yu@compuware.com] 
> > I ran into "Property <myNestedProperty> has no getter method"
> > errors when running my application under JDK 1.3.1.
> > the last property on the chain has one
> > getter and two setter (e.g. getAge:Integer, setAge(int), 
> > setAge(Integer))
> 
> Your bean does not conform to the JavaBeans specification, at 
> least the
> last one I read.  You're not supposed to have multiple 
> setters with the
> same name, or matching get/set methods with different types.
> 
> I stopped doing it a long time ago, are you saying that it now works
> under 1.4?  
> 
> Is this now "allowed" in a new JavaBeans spec, or is 1.4 
> "smarter" when
> it comes to figuring out what method to call with
> Reflection/introspection?
> 
> -- 
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 



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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message