Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How Is The Action Class Called??

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bartender
Posts: 9612
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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



The execute method is inherited by the derived class. Are you familiar with inheritance?
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic