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
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
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
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
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!
--
5 matches
Mail list logo