Hi,
the following situation:
I'm using DispatchActions and in my struts-config.xml wildcards for
the method-parameter.
<action path="/Foo/*" ... parameter="{1}">
I also have removed the .do from the URL (changed in the web.xml), so
that I can call an action method like this:
/Foo/bar
and it calls the bar-method from the FooDispatchAction.
Now I want to create a BaseAction from which all DispatchActions
extends. The BaseAction extends "Action" and looks like this:
public class BaseAction extends Action {
protected ActionDispatcher dispatcher = new ActionDispatcher(this,
ActionDispatcher.Dispatch:Flavor);
public ActionForward execute(Actionmapping mapping...... ) throws Exception {
return dispatcher.execute(mapping .... );
}
}
But now I have tho problem, that I got the error message, that the
Request [/Foo/bar] does not contain handler parameter named 'bar'.
I've recognized that the method "getMethodName", which I've called in
every DispatchAction to get the method-parameter isn't called anymore.
Does anybody knows how to solve this problem?
Thanks in advance
jope
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]