The "unspecified()" method is only invoked if the
parameter wasn't passed in.  However, when an invalid
method name is passed in, a
java.lang.NoSuchMethodException exception is thrown.

If possible, I want "unspecified()" to be invoked for
invalid method names also...

Example... parameter name: "param"
 param=validMethod => DispatchAction.validMethod()
 param=NULL => DispatchAction.unspecified()
 param=invalidMethod => NoSuchMethodException is
THROWN!!

thanks.

--- Paul Benedict <[EMAIL PROTECTED]> wrote:

> Joe, override the unspecified method. That method
> is invoked whenever the dispatch cannot be resolved.
> 
> --- Joe Mun <[EMAIL PROTECTED]> wrote:
> 
> > Using DispatchAction, if a non-existent method
> name is
> > passed, a java.lang.NoSuchMethodException is
> thrown. 
> > How  (and where) can I catch (and ignore) this
> > exception, so that invalid methods default to
> > "unspecified(..)"???
> > 
> > Thanks!
> > 
> >
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to