wood burning stoves 2.0*
The moose likes Struts and the fly likes How Is The Action Class Called?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How Is The Action Class Called??" Watch "How Is The Action Class Called??" New topic

How Is The Action Class Called??

Ravissant Markandey
Ranch Hand

Joined: Oct 24, 2007
Posts: 41
Hi Everyone, Im working on a project where the Action class extends itself from some other class, the "execute()" method is missing in the action class but is present in its superclass, my question is : how is action class called??..the constructor simply calls the constructor of the super class, BUT HOW DOES THE execute() METHOD IN THE SUPER CLASS GET CALLED??.
Heres some of the code from both the superclass and the actionclass.Please note, the path pointed to in the struts-config is that of the subclass or the ListViewActionClass:

The Action Class:

Now, the superclass:

Thanks in advance,
Ravissant Markenday
[ April 10, 2008: Message edited by: Ravissant Markandey ]
Joe Ess

Joined: Oct 29, 2001
Posts: 8843

Originally posted by Ravissant Markandey:
how is action class called?

The execute method is inherited by the derived class. Are you familiar with inheritance?

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: How Is The Action Class Called??
Similar Threads
Getting error while running BeerStruts example
Can not forward from BaseAction
chaining actions?
Confused on validate() method
No getter method for bean write in Struts