Danny Mui wrote:
> I extended the dispatch action to do something like that:
> in execute() {
>       ActionForward forward = null;
>
>        if (mapping.getParameter() == null ||
"".equals(mapping.getParameter())) {
>            forward = executeAction(mapping, form, request, response);
>        } else {
>            forward = super.dispatchMethod(mapping,form,request,response,
mapping.getParameter());
>        }
>        return forward;
>}
> i'm a little weirder, i like to declaratively tell my action which to 
> execute.  so extending the if statement to look at the request/form is 
> possible.
> this may not be lookupdispatchaction but close enough i guess?

I don't quite understand where this code lives.  Is this in a class that
extends "Action"?  Or have you subclassed LookupDispatchAction and "fixed"
the execute() method?

-- 
Wendy

Reply via email to