Hi Edward,
Create a method for handling all the rest or unspecified actions, and
delegate to your view:
protected ActionForward unspecified(ActionMapping mapping, ActionForm
form,
HttpServletRequest request,
HttpServletResponse response)
-
From: Griffith, Michael * [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2008 4:15 PM
To: Struts Users Mailing List
Subject: RE: DispatchAction nonexisting method
Hi Edward,
Create a method for handling all the rest or unspecified actions, and
delegate to your view:
protected
Hi
Subclass the DispatchAction and override getMethod() like below
Method getMethodName() {
Method method = super.getMethod();
if (method == null) {
method = clazz.getMethod(unspecified, types);
}
return method;
}
Regards
--
Lukasz
3 matches
Mail list logo