Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: No getter method for property

Agustín

2007-01-31

Replies:

If I only have two methods the application runs perfectly:

getNombre()
setNombre(String)

If I have four methods the applications not runs.


getNombre()
setNombre(String)

getNombre(int)
setNombre(int, String)

I don't know why the application runs on one server (on localhost) and not
runs on other server (on other host).

Agust?n Gonz?lez Garc?a
-------------------------------------
Mantenimiento J2EE - Treelogic
Tel: 985 73 27 32
Edificio Centroastur, 2? planta
Pol?gono SIA Copper
33420, Lugones - Asturias - Espa?a
----- Original Message -----
From: "Dave Newton" <newton.dave@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Wednesday, January 31, 2007 1:14 PM
Subject: Re: No getter method for property


> --- Agust?n <agustin.gonzalez@(protected):
>> I have the get and set method fot the property
>> nombre, but I have more than one method. I have:
>>
>> getNombre()
>> getNombre(int)
>> setNombre()
>> setNombre(int)
>
> I'm not sure that this is a legal JavaBean; does it
> work if you remove one set of accessors? (And no, I
> don't know why it works on one server and not another
> :)
>
> Dave
>
>
>
>
> ____________________________________________________________________________________
> Want to start your own business?
> Learn how on Yahoo! Small Business.
> http://smallbusiness.yahoo.com/r-index
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.