Rajendra Prakash wrote:But in DispatchAction we can use all methods (add, delete , edit ) in single class which extends dispatchaction class.If wrong means please explain how
Please refer
DispatchAction which is subclass of
Action.
Dispatch Action dispatches to a public method that is named by the request parameter whose name is specified by the parameter property of the corresponding ActionMapping in struts-config.xml (or your module specific xml). In simple term you can understand it as DispatchAction is overriding the execute() method of Action class but has different name (mentioned in your struts-config.xml)