Claudio,

I'm sorry but I have a bit of trouble following your explanation (I just do
not know your object model/domain well enough to follow the explanation).

But I'm still wondering if this is not a problem of ill-formed JavaBeans.
Are you aware of the rules for naming JavaBeans classes and their
properties/mutators (getters and setters)? In summary:
 - your instance variables should all start with lowercase letters (e.g.
"apellido");
 - the getter and setter should be getApellido() and setApellido(String
apellido) respectively.
Look at Sun's Java site (or other good Java reference) for the JavaBean
naming standards.

The rule on instance variables starting with lower case letters is more of a
convention. What really matters is that if you have methods getApellido and
setApellido then in your JSP code you can simply refer to "apellido" most
frameworks will translate this into a call to getApellido.

If this does not provide some insight into the problem, you need to provide
a bit more detail of a simplified version of your object model - something
like a simple character/line drawing or indented class outline with instance
variables. Then your description of what is happening might make a bit more
sense to some of us and you might get a better answer.

Hope this helps - Richard

-----Original Message-----
From: Claudio Martn Veas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 14, 2005 5:50 AM
To: Tomcat Users List
Subject: Re: inserting data (A weird problem)


 Hello all, and thanks for writing about my problem, I found the solution
but Im note very confortable because I dont understand the reason why it
fails. 
When this error started to show several times even if I tried the same thing
a lot of times I started to think about the reason of all this erros so Í
thought that maybe (since Im very new to all this) beans had a limit in the
porperties or set methods so that was the reason that when ever I delete all
the "apellido"
logic all worked fine but I decided to try another example so I took out
another of the properties I believe it was mail and I let the "apellido"
logic stay, but the error didnt leave. After hours of thinking a (lets say
stupid idea) came into my mind (oh I forgot to tell you that Itried to
replace "apellido" with "algo" but the logic was the same and I did this to
see if the naming of the propertie/method had anything to d with this) I
thought, hey maybe beans arent supposed to have properties / methods
starting with an "a" so I tried without the "apellido" logic to make work
the example but I replace "Numero" with "aNumero" in all the places just
like with the other example, and the error showed up so I decided to put
"Numero" back and I put all the "apellido" logic again but in english this
time "Lastname" AND IT WORKED so Im parcially happyu about the fact that I
made it work but I dont like not knowing what is the problem, i dont like
the idea of taking something for granted as if it were some kind of magic
"Tomcat and beans with properties starting with 'a' dont match" "why not?"
"because they dont"
jaja so if you find out why this is a problem just let me know Thanks for
all you attention Thanks on Advance Claudio Veas


        


        
                
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to