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/viewcvs.cgi/struts/action/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/actions/EventActionDispatcher.java?rev=384134&view=markup Michael. On 3/8/06, Joe Mun <[EMAIL PROTECTED]> wrote: > 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]