Hi, I have a getter and setter class but when I call this bean in my JSP to load records of MySql table to jtable I'm get an error that say that a item of my bean class not found, I can not see where are this error.
First off the naming for your instance variables should be camel case, so codigoProduto and not CodigoProduto.
You method names are correct, but the reference to the instance variables in your el needs to match the variable name...it is case sensitive.
So codigoProduto and not codigoproduto .
Same goes for descricaoproduto.
Technically speaking the instance variable could be called anything, as it's the getter that the el engine targets, but it helps to get the naming correct.
Hi, problem is solved. I have created a new bean with string codigo, descricao, quantidade e preco, then alt+insert and generated the getter, setter and tostring. What I can't understan is why in the first post codigoproduto works fine and descricaoproduto don't work.
Thanks for all.
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
SKIP - a book about connecting industrious people with elderly land owners