On 6/5/07, Nathan Hook <[EMAIL PROTECTED]> wrote:
Thank you for your response.
We actually have an Exception Handler setup and it catches
java.lang.Exception. Here is the mapping for it...
<global-exceptions>
<exception
handler="com.xxx.action.ExtendedExceptionHandler"
key="global.error.message"
scope="request"
type="java.lang.Exception"/>
</global-exceptions>
Wouldn't this normally catch the
org.apache.struts.chain.commands.InvalidPathException? Or do we
specifically catch the InvalidPathException?
Looking at the source code seems that you have to define each specific
exception.
Niall
Thank you for your time.
----Original Message Follows----
From: "Niall Pemberton" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: Re: Handeling org.apache.struts.chain.commands.InvalidPathException
Date: Tue, 5 Jun 2007 11:52:14 +0100
You can either set up an exception handler for InvalidPathException or
you can mark one of your actions in the struts-config.xml as
"unknown".
Niall
On 6/4/07, Nathan Hook <[EMAIL PROTECTED]> wrote:
>We have recently upgraded to struts 1.3.8 and have been running into the
>org.apache.struts.chain.commands.InvalidPathException when a user types in
>a
>url that doesn't map correctly. I am hoping to instead of show the user
>the
>tomcat exception page, I wanted to show a 404 error page. How do I go
>about
>changing the config files or struts to show the 404 page.
>
>Thank you for your time.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
PC Magazine's 2007 editors' choice for best Web mail—award-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]