aspose file tools*
The moose likes Struts and the fly likes Inheritance ActionForm Struts 1.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Inheritance ActionForm Struts 1.x" Watch "Inheritance ActionForm Struts 1.x" New topic
Author

Inheritance ActionForm Struts 1.x

kenta kun
Greenhorn

Joined: Jun 06, 2012
Posts: 4
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

Joined: Jun 06, 2012
Posts: 4
kenta kun
Greenhorn

Joined: Jun 06, 2012
Posts: 4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inheritance ActionForm Struts 1.x