Re: javabeans explanation

2006-06-05 Thread Leon Rosenberg
El lun, 05 de 06 de 2006 a las 16:32, Emilia Ipate escribió: > That is true, but my question is: why does it have to be the same? because of the java bean specification? Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: javabeans explanation

2006-06-05 Thread Jorge Martín Cuervo
maandag 5 juni 2006 16:25 > To: Struts Users Mailing List > Subject: Re: javabeans explanation > > > i think the types must be the same > choose: > > > public int getAge() > public void setAge(int age) > > or > > public Age getAge() > public voi

RE: javabeans explanation

2006-06-05 Thread Emilia Ipate
That is true, but my question is: why does it have to be the same? -Original Message- From: Jorge Martín Cuervo [mailto:[EMAIL PROTECTED] Sent: maandag 5 juni 2006 16:25 To: Struts Users Mailing List Subject: Re: javabeans explanation i think the types must be the same choose: public

Re: javabeans explanation

2006-06-05 Thread Jorge Martín Cuervo
i think the types must be the same choose: public int getAge() public void setAge(int age) or public Age getAge() public void setAge(Age age) despite this, in actionform you should use only String values. With String values you can store wrong int values that user entered, but with int value