Yes it can. You can also send to a jsp file instead of an html file. Here is the code that you need to put into your web.xml file:
<error-page><error-code>404</error-code><location>/Errors/404.jsp</location> </error-page> <error-page><error-code>500</error-code><location>/Errors/500.jsp</location> </error-page> Good luck ---------------------------------------------------------------- Rob Jose, Senior Software Engineer Individual Software Inc., [EMAIL PROTECTED] (925) 734-6767 x152, Fax: (925) 734-8337 ResumeMaker. Get the job you always wanted! -----Original Message----- From: Bin Zhou [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 9:39 PM To: JRun-Talk Subject: Re: Can we log 404 ,500 exceptions I did this indirectly. You can set error-code in the web.xml file to catch 404 error and specify a html file to hand this. In the html file I will send an email(You may try to do the logging). For 500, I am not sure if the same way can be used. Bin Zhou >From: "Ganti.s" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: JRun-Talk <[EMAIL PROTECTED]> >Subject: Can we log 404 ,500 exceptions >Date: Sat, 6 Oct 2001 09:46:27 +0530 > >Hi all >Is there any way to log 404 file not found exceptions and 500 internal >server error. > >thanks in Advance > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
