Class Dispatch is used to create actions that can handle more than one action which is execute(). Instead of using only execute() method, we can add many methods like add(), edit(), delete() in a action class.
1. create class which extends org.apache.struts.actions.DispatchAction; 2. config the action in struts-config.xml. We have to add a attribute parameter="method", and we have to refer to the method like /studentDispatchAction?method=add. 3. using dispachtAction in .jsp files.
Class Dispatch is used to create actions that can handle more than one action which is execute(). Instead of using only execute() method, we can add many methods like add(), edit(), delete() in a acti