• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inheritance ActionForm Struts 1.x

 
kenta kun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have some problem with inheritance in Struts,

I have my first class that extends ActionForm


then, my second class extends my first,


my third class extends second, and this is the beginning of my problem


so my fourth class finally extends third and I use it in my JSP


JSP


the JSP file turned into error 500, said no getter method for property totalRecord, but my currentPage and maxPage work fine.
I've cleared the project and server.. rebuilding from scratch etc. but nothing change, still get the error no getter method for totalRecord.
I must create getTotalRecord in my ImageForm that call super.getTotalRecord() to get rid the error and get the value.... it's weird that other variables do not require that.

Is there a way so I don't have to override the superclass method? It's weird. Is there something wrong with my code?
 
kenta kun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
kenta kun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic