But currently my solution is running on a remote server........not is
running on localhost. So I think it's possible to have the methods as I have
them.
Thanks.
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: "Taras Puchko" <taras.puchko@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Wednesday, January 31, 2007 4:36 PM
Subject: Re: No getter method for property
> You've got String getNombre() but it should return an array of Stringsand
> setNombre(String) should accept an array to. Or you'll have togive
> different names to your properties:
> public String getNombre1(int i)public void setNombre1(int i, String
> nombre)
> public String getNombre2()public void setNombre2(String nombre)
> -Taras
> On 1/31/07, Agust??n <agustin.gonzalez@(protected)
> exactly this in the class:>> public String getNombre(int i) {> return
> otrosSolicitantes[i].getNombre();> }>> public void setNombre(int i,
> String nombre) {> otrosSolicitantes[i].setNombre(nombre);> }>> public
> String getNombre() {> return solicitantePrincipal.getNombre();> }>>
> public void setNombre(String nombre) {>
> solicitantePrincipal.setNombre(nombre);> }>> 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: "Taras Puchko" <taras.puchko@(protected)
> Users Mailing List" <user@(protected),
> 2007 2:47 PM> Subject: Re: No getter method for property>>> > Hi,> > I
> think Struts is confused to see a simple and an indexed propertywith the>
> > same name. If you have an indexed property, your methodsshould look
> like> > this:> > String getNombre(int)void setNombre(int, String)String[]>
> > getNombre()setNombre(String[])> > See> >
> http://java.sun.com/docs/books/tutorial/javabeans/properties/indexed.html>
> > Regards,Taras> >> >> > On 1/31/07, Agust??n
> <agustin.gonzalez@(protected)
> 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)> >
> Users Mailing List" <user@(protected)
> 31,> > 2007 1:14 PM> Subject: Re: No getter method for property>>> > ---
> Agust??n> > <agustin.gonzalez@(protected)
> 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)> >
> additional commands, e-mail: user-help@(protected)>> >
> >>>> --------------------------------------------------------------------->>
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> additional> > commands, e-mail: user-help@(protected)>>>
> >>>> --------------------------------------------------------------------->
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> commands, e-mail: user-help@(protected)>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)