Hi Benny, That sounds promising. I'll try it out, thanks.
-----Original Message----- From: Benny Law <benny.mk....@gmail.com> Reply-to: "Tapestry users" <users@tapestry.apache.org> To: Tapestry users <users@tapestry.apache.org> Subject: Re: Different ExceptionReport for different pages Date: Sun, 17 Jan 2010 16:06:07 -0500 I haven't tried it myself, but the Tapestry documentation says that you can create an event handler in your special page to catch exceptions and redirect to a different exception page: Object onException( Throwable cause ) { return MySpecialExceptionReport.class; } Don't know if this would help you in your case. Regards, Benny On Sun, Jan 17, 2010 at 2:54 PM, Howard Lewis Ship <hls...@gmail.com> wrote: > This is easier in 5.2 as there's a new RequestGlobals property that > identifies the name of the page for the request. > > On Sun, Jan 17, 2010 at 11:03 AM, Richard Hill <r...@su3analytics.com> > wrote: > > > > Ok thanks. Is it possible to detect which page threw the exception? My > > logic needs to be based on the page that threw the exception as opposed > > to the type of exception. > > > > > > > > > > > > -----Original Message----- > > From: Thiago H. de Paula Figueiredo <thiag...@gmail.com> > > Reply-to: "Tapestry users" <users@tapestry.apache.org> > > To: Tapestry users <users@tapestry.apache.org> > > Subject: Re: Different ExceptionReport for different pages > > Date: Sun, 17 Jan 2010 16:25:09 -0200 > > > > On Sun, 17 Jan 2010 15:41:08 -0200, Richard Hill <r...@su3analytics.com> > > wrote: > > > >> Hi All, > > > > Hi! > > > >> I have an ExceptionReport.java, .tml to present a pretty error page to > >> users. However there is one page where I would like to have a different > >> exception page. Is this possible? > > > > Simple answer: you can, but I think it's not worth the hassle. Just use > > some logic in your error page to show different content to different > > exceptions. You can also redirect to another page in your ExceptionReport > > page. > > > > Sophisticated answer: override the RequestExceptionHandler service. Draw > > some inspiration from RequestExceptionHandlerImpl. > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org