• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inheritance ActionForm Struts 1.x

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
kenta kun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
reply
    Bookmark Topic Watch Topic
  • New Topic