*
The moose likes Struts and the fly likes No getter method in inheritance classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method in inheritance classes" Watch "No getter method in inheritance classes" New topic
Author

No getter method in inheritance classes

Andrea Patta
Greenhorn

Joined: Jun 28, 2005
Posts: 2
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

Joined: Jun 28, 2005
Posts: 2
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

Joined: Jul 10, 2002
Posts: 214

Well, is there a getter method for the property pessoaFisica?


SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No getter method in inheritance classes