posted 17 years ago
Yes, you can write an execute method for a DispatchAction, but would you really want to?
Think about it: The logic to dispatch to another method is in the execute method of the DispatchAction superclass. If you override that method, you could disable the dispatching ability.
One possible reason you might want to override it would be if there is some common logic you want to perform before dispatching to the various methods. In that case you could perform your logic and then call super.execute() to dispatch to the other methods.
[ July 28, 2006: Message edited by: Merrill Higginson ]