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,
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
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?
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
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 =
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
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
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,
8 matches
Mail list logo