RE: How to turn off error reporting?
"tsvetelin" <tsvetelin.saykov-3nDt598S20KPwl38TKGka1aTQe2KTcn/@public.gmane.org> Fri, 22 Aug 2003 15:16:14 +0300
| Newsgroups | gmane.comp.java.tapestry.contrib |
|---|---|
| Message-ID | <CEEMLLCCBNBCPDBOCCIJMEBICGAA.tsvetelin.saykov@rushmore-digital.com> |
Hi Tomas, I have made a little mistake in my previous email. If would like to implement your own page that shows the application runtime errors you should define a method "public void setException(Throwable ex);" Tzvetelin -----Original Message----- Hi Tomas, First the Tapestry project was moved to Jakarta and this mailing list is closed. Please register to tapestry mailing list on Jakarta. You could specify the error page in your web application if you define a page in you *.application file called "Exception" that must have a method "public void exception(Throwable ex);", so the default page will be skipped. Please see IEngine.EXCEPTION_PAGE for more details. From my point of view the ApplicationRuntimeException will be receive in 2 cases. The 1 one is when there is something wrong in implementation of application structure(like wring page/component definition) and the second one when there occur internal server errors. In the most 2 cases from design point of view it is good idea to catch the second case in your code so I think that in a real live application you will not receive this exception. -----Original Message----- From: tapestry-contrib-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:tapestry-contrib-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]On Behalf Of Thomas Sent: Thursday, August 21, 2003 1:25 PM To: tapestry-contrib-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: [Tapestry-contrib] How to turn off error reporting? Hi, folks! I really like the error reporting feature very much. But on a live website this is a huge security risk. How can I turn it off? For example, org.apache.tapestry.ApplicationRuntimeException error is displayed often. I use the lastest, Apache 3 beta 2 version. Thanks for your help! Thomas Derflinger ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0