aspose file tools*
The moose likes Struts and the fly likes Difference between DispatchAction and LookupDispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference between DispatchAction and LookupDispatchAction" Watch "Difference between DispatchAction and LookupDispatchAction" New topic
Author

Difference between DispatchAction and LookupDispatchAction

Sumit Sahu
Greenhorn

Joined: Jan 10, 2008
Posts: 7
i was having some confusion on the difference between them,can any please explain the difference.
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1000
    
    1

Main diff beten these Actiosn are

LookupDispatchAction is used when we are using Struts's Internalization functionlaity in Application means when your app supports multiple languges.

Using DispatchAction Class we will not be able to apply "internalization" functionality.

~ Abhay Agarwal


Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
S Reddy
Ranch Hand

Joined: May 17, 2007
Posts: 45
DispatchAction and LookupDispatchAction both are used to combine related operations into a single class, so that they can share common resources like helper methods without exposing them to other classes.

DispatchAction selects the method to execute depending on the request parameter value which is configured in the xml file. This will be problematic for internationalized applications since the values will be different for different locales. So, LookupDispatchAction looks into the resource bundle file and find out the corresponding key name. We can map this key name to a method name by overriding the getKeyMethodMap() method.
Sumit Sahu
Greenhorn

Joined: Jan 10, 2008
Posts: 7
thanks for the help..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between DispatchAction and LookupDispatchAction
 
Similar Threads
Difference between wsad5.1.2 & Rad
Synchonized
JATO Vs JDOM
Run as AWT or SWT Application Eclipse Question
difference RAD & WSAD