RE: Mapping ActionPath to a method in DispatchAction

2004-08-16 Thread Amit Kumar Sharma
-Original Message- From: Kunal Parikh [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 11:28 AM To: Struts Users Mailing List Subject: Re: Mapping ActionPath to a method in DispatchAction That is EXACTLY what I've done: Changed the last line of the execute method of dis

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Hubert Rabago
If you're using Struts 1.2.x or the nightly builds, take a look at the MappingDispatchAction. It does exactly what you're looking for. http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html hth, Hubert --- Kunal Parikh <[EMAIL PROTECTED]> wrote: > Hi! > > I was wond

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Kunal Parikh
That is EXACTLY what I've done: Changed the last line of the execute method of dispatch action FROM return dispatchMethod(mapping, form, request, response, name); TO return dispatchMethod(mapping, form, request, response, parameter);

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Navjot Singh
but then it wont remain a DisptachAction anymore ;-) as control will not reach same class for multiple actions. regards Navjot Singh Navjot Singh wrote: 110% POSSIBLE. retreiving the paramter name and method calls using reflection and are already done. all you need to do is override the implemen

Re: Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Navjot Singh
110% POSSIBLE. retreiving the paramter name and method calls using reflection and are already done. all you need to do is override the implementation and rather than checking for *method* value , check for last part of URI and call the respective method. just change execute() method in Dispatch

Mapping ActionPath to a method in DispatchAction

2004-08-15 Thread Kunal Parikh
Hi! I was wondering if it were possible to drop the parameter attribute in a dispatch action and map an actionPath to a method/methodName ? E.g /createUser -> public ActionForward createUser(ActionMapping m,ActionForm f,HttpServletRequest req,HttpServletResponse res ) /editUser -> public Acti