struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@gmail.com>
Subject Re: Handeling org.apache.struts.chain.commands.InvalidPathException
Date Tue, 05 Jun 2007 20:09:49 GMT
On 6/5/07, Nathan Hook <hooknc@hotmail.com> 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" <niall.pemberton@gmail.com>
> 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 <hooknc@hotmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> _________________________________________________________________
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message