Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 19163 invoked from network); 13 Dec 2002 18:26:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Dec 2002 18:26:48 -0000 Received: (qmail 28463 invoked by uid 97); 13 Dec 2002 18:27:37 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 28446 invoked by uid 97); 13 Dec 2002 18:27:37 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 28434 invoked by uid 98); 13 Dec 2002 18:27:36 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) content-class: urn:content-classes:message Subject: RE: no getter method exception ? Date: Fri, 13 Dec 2002 10:25:37 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Thread-Topic: no getter method exception ? X-MimeOLE: Produced By Microsoft Exchange V6.0.6334.0 Thread-Index: AcKizhwp4hslyw7AEdeorgAIx78tMgABrPlw From: "Karr, David" To: "Struts Users Mailing List" X-OriginalArrivalTime: 13 Dec 2002 18:25:37.0497 (UTC) FILETIME=[088CBC90:01C2A2D5] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sorry. Read the JavaBeans specification. A JavaBeans property has only one type. It's unfortunate that it's not easy to diagnose mistakes in following the JavaBeans specification. You often get unintelligible errors like you got. > -----Original Message----- > From: Sash Sash [mailto:swishey911@yahoo.ca] >=20 > I have a form bean that has getter methods that return a=20 > string and setter methods that take a string. That all works=20 > great. I decided to add some setter methods (used in my=20 > action class) that accept an int as a parameter. As soon as=20 > I overloaded the original setter methods, i get the following=20 > exception:=20 >=20 > "No getter method for property rounds of bean=20 > org.apache.struts.taglib.html.BEAN" >=20 > So before the change, there were two methods for this field in my form >=20 > public void setRounds(String rounds) {...} >=20 > public String getRounds() {...} >=20 > Then I added: >=20 > public void setRounds(int rounds) {...} >=20 > and got the exception listed above. >=20 > =20 >=20 > Why can't I do this? The reason I really want this is to be=20 > able to use PropertyUtils.copyProperties() to copy from my=20 > business beans to my display beans. Any suggestions? Thanks=20 > in advance!!! >=20 > =20 >=20 >=20 >=20 > --------------------------------- > Post your free ad now! Yahoo! Canada Personals >=20 -- To unsubscribe, e-mail: For additional commands, e-mail: