Calling a Action class which doesnt have a Perform() or Execute() method.
Joined: Oct 12, 2010
Hi All ,
I have all my appliaction written in User defined Struts framework. I have my userdefined struts-config file calling a Action class below (whole code),
It calls this class which doesnt have any Perform() or Execute() method and the class extends BatchTypeDetailAction which has Perform() method returns RequestForward . my question is which method from the above BatchChildDetailAction class is called without any instance calling the method & the class dont have Perform() or Execute() method.How my flow goes ???
Please revert back for any doubts in my question ...
Yes, you are right . But when "BatchChildDetailAction" is intially called , will it automatically looks for the Perform() method in default ?.
And again further BatchTypeDetailAction extends TypeDetailAction extends GetDetailActionBase which contains another Perform() method , so will the hirarchy keeps going to call the upcoming Perform() method with ends in ActionBase class ? or will it stop with the first Perform() and process it ? .
Struts Actions follow the same rules of inheritance that are true for any Java class. You should have a look at the Java tutorial, in this case, the chapter on Inheritance.
A little reading now will save you a lot of agony in the long run.