RE: how to handle method not found in DispatchAction

2003-02-03 Thread Wendy Smoak
suppose I have a following URL /pages/MyDispatchAction.do?nextpage=home and class MyDispatchAction has a method public ActionForward home(...) so this request is handled by this method, Suppose there is a request to DispatchAction , for which there is no method to handle it , it crashes,

RE: how to handle method not found in DispatchAction

2003-02-03 Thread Larry Zappeterrini
You should override the method unspecified. Check out the DispatchAction Java doc: http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchActio n.html#unspecified(org.apache.struts.action.ActionMapping,%20org.apache.stru

RE: how to handle method not found in DispatchAction

2003-02-03 Thread Wendy Smoak
Larry wrote: You should override the method unspecified. Check out the DispatchAction Java doc Thanks! That will fix my problem, but not Ashish's. He's apparently got people sending requests that contain a parameter value for which there is no mapping. Any help there, or is my guess okay?

RE: how to handle method not found in DispatchAction

2003-02-03 Thread Ashish Kulkarni
Hi Thanx guys, I will try it out Ashish --- Wendy Smoak [EMAIL PROTECTED] wrote: Larry wrote: You should override the method unspecified. Check out the DispatchAction Java doc Thanks! That will fix my problem, but not Ashish's. He's apparently got people sending requests that

RE: how to handle method not found in DispatchAction

2003-02-03 Thread Larry Zappeterrini
I should have read more carefully, that is trickier. It looks like you could override getMethod, attempt to execute super.getMethod, trap the NoSuchMethodException if the method is not found, and return a Method corresponding to unspecified: Method method = null; try { method =

RE: how to handle method not found in DispatchAction

2003-02-03 Thread Ed Robbins
If it's running in a 2.3 container a filter might do it. I had a very similar problem and wrote a filter mapping a particular call, I check for the parameter and if not there redirect elsewhere to be handled. Ed On Mon, 2003-02-03 at 15:17, Wendy Smoak wrote: Larry wrote: You should override

RE: how to handle method not found in DispatchAction

2003-02-03 Thread David Graham
I believe there is an open bug report on this issue. You shouldn't have to write a filter to handle this situation :-). David From: Ed Robbins [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: how to handle

RE: how to handle method not found in DispatchAction

2003-02-03 Thread Ashish Kulkarni
Hi, Thanx Larry for the solution, it works, Ed can u send me the way u have written filter, Thanx for the help Ashish --- Ed Robbins [EMAIL PROTECTED] wrote: If it's running in a 2.3 container a filter might do it. I had a very similar problem and wrote a filter mapping a particular call,