Re: DispatchAction: Invalid Method call

2006-03-08 Thread Niall Pemberton
How about using an exception handler to catch both unspecified and invalid method names? I recently added "dispatch" flavour examples (primarily for testing) to the struts-examples webapp - you can take a look at them in the nightly build if thats of interest: http://svn.apache.org/builds/struts/m

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Michael Jouravlev
DispatchAction sucks. Use http://wiki.apache.org/struts/EventActionDispatcher It is so much better. It is Javascript-free and allows to set arbitrary caption for your button. You can get it from here: http://issues.apache.org/bugzilla/attachment.cgi?id=17724 or from here: http://svn.apache.org/vi

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Joe Mun
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: "p

Re: DispatchAction: Invalid Method call

2006-03-08 Thread Paul Benedict
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

DispatchAction: Invalid Method call

2006-03-08 Thread Joe Mun
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! --