> This is easier in 5.2 as there's a new RequestGlobals property that > identifies the name of the page for the request. Wow thats a useful feature, nice!
----- Original Message ----- From: "Howard Lewis Ship" <hls...@gmail.com> To: "Tapestry users" <users@tapestry.apache.org>, r...@su3analytics.com Sent: Sunday, 17 January, 2010 21:54:19 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Different ExceptionReport for different pages 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