I am currently using MultiActionController in my application which is kinda CURD application. I have wriiten all the handlers in controller (for cut, read, delete operation) . Now I want to implement a default method which will get called when request cant map to any of the handler. Can anyone please tell me how to define this default request handler when none of the handler matches the given request. ?
P.S. In the documentation I could see that there is a method called "handleNoSuchRequestHandlingMethod" which one should override. Though I want to provide the loggic for default view handling in this method and name of the method does not look appropriate in that case. Or is it the only and correct way to do it ? Please explain.
Thank you very much for the reply. It solved my problem partially. Can you please tell me how can I pass HttpServeltRequest and HttpServletResponse as parameters to the method "noWhere" ?
Thanks in advance
Like other handler methods, your 'noWhere' method have to have at least HttpServletRequest and HttpServletResponse parameters. Double-check the API of MultiActionController, Samir. The 3rd parm, HttpSession, and 4th param, command object, are optional.
It is similar to 'unspecified' method in DispatchAction of Struts 1.x, I think.