Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

No getter method in inheritance classes

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 214
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, is there a getter method for the property pessoaFisica?
 
reply
    Bookmark Topic Watch Topic
  • New Topic