This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes DispatchAction VS LookupDispatchAction VS EventDispatchAction VS MappingDispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DispatchAction VS LookupDispatchAction VS EventDispatchAction VS MappingDispatchAction" Watch "DispatchAction VS LookupDispatchAction VS EventDispatchAction VS MappingDispatchAction" New topic
Author

DispatchAction VS LookupDispatchAction VS EventDispatchAction VS MappingDispatchAction

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Q1) What is difference between these classes DispatchAction VS LookupDispatchAction VS EventDispatchAction VS MappingDispatchAction?

As far as i understand there is one common thing in these classes is that :
All these classes are used to group logical related functions into single Action class.

LookupDispatchAction is used instead of DispatchAction when there is need to internationalized button names. So we implement getMethodkey() to
find appropraite method based on message key.

Q2) When we must go for EventDispatchAction,MappingDispatchAction? how they differ from other 2 classes(i.e DispatchAction and LookupDispatchAction)?

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What did your examination of the Javadocs tell you?
 
wood burning stoves
 
subject: DispatchAction VS LookupDispatchAction VS EventDispatchAction VS MappingDispatchAction