A DispatchAction contains a number of different methods other than the standard execute(). These methods are executed based on some request parameter. Your action mapping in struts-config specifies the request parameter to examine. Then, whatever the value of that parameter is for a given request, Struts will try to execute the method in the action whos name matches the value of the parameter.
A LookupDispatchAction by contrast determines which method to call not based directly on a request parameter's value, but by doing a lookup to determine the method, based on the value of the parameter. You provide a method that accepts the value of the request parameter and returns the method to execute. How you actually implement the lookup is of course up to you, but a simple Map is probably most typical. I suppose if I were to state the difference as concisely as possible, I would probably say this... The method to execute on a DispatchAction is determined by Struts based on the value of a specified request parameter, whereas the method to execute on a LookupDispachAction is determined by your Action itself based on the value of a specified request parameter. HTH, Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Thu, March 30, 2006 4:00 am, vasumathi said: > > > Hi > i like to know the difference between DispatchAction and > LookupDispatchAction in struts 1.2. anyone can help me... > > with regards > vasu > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]