Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No getter method in inheritance classes

 
Andrea Patta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I get the follow message when running my application:
"No getter method for property pessoaFisica of bean professorVO"

I will try explain how the classes are related:

Funcion�rio - This is my TOP class
Professor - This is child from Funcionario

The Funcionario class contains a reference to the PessoaFisica class and the PessoaFisica class has the nome attribute. OK?

The ProfessorForm class contains the getProfessores method wich returns a collection.

My code is:

<logic:iterate id="titulacaoVO" name="ProfessorForm" property="professores" indexId="index">
<%if((index.intValue() % 2) != 0)%><tr class="lightColor"><%else%><tr>
<td align="left"><bean:write name="titulacaoVO" property="registro"/></td>
</tr>
</logic:iterate>

But it does�nt work well. Appears the "No getter method for property pessoaFisica of bean professorVO" message.

My doubt is: May struts recognize inheritance classes?

Please help me.

Andrea
 
Andrea Patta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I have attached a wrong code. Please, the correct code is:

My code is:

<logic:iterate id="professorVO" name="ProfessorForm" property="professores" indexId="index">
<%if((index.intValue() % 2) != 0)%><tr class="lightColor"><%else%><tr>
<td align="left"><bean:write name="professorVO" property="registro"/></td>
</tr>
</logic:iterate>


Thanks,

Andrea
 
Edwin Keeton
Ranch Hand
Posts: 214
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, is there a getter method for the property pessoaFisica?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic