Hi All,

I'm sorry for the confusion, I was trying to setup a site-wide error handler
in cf administration. I did but it doesn't work. This is what did:

1) made a template called handleOurErrors.cfm in /sitewide
2) put /sitewide/handleOurErrors.cfm in cfadmin -> settings -> sitewide box
3) call a bad template to see the results.

The code in handleOurErrors.cfm is:

"Something is wrong, blah blah....."
<cfmail ...>
#error.variablesHere#
</cfmail>

Problem is, cf doesn't like it. It says "error occured in site-wide
handler".  After noticing that problem, I added a <cferror type="x"
template"/sitewide/anotherHandlerFile.cfm"> tag to the errorhandler
template. But this time, it doesn't process any coldfusion except displaying
the error.variables.

Any ideas?


----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 8:24 AM
Subject: RE: site-wide error handler


> > I think that is different to what Mahmut is looking for
> >
> > Look in the /wwwroot/WEB_INF/web.xml
> > where you can specify handlers
> > eg
> > <error-page>
> > <error-code>500</error-code>
> >
> > <location>/WEB-INF/exception/java/lang/Exception.cfm</location>
> > </error-page>
>
> I think that's also different from what Mahmut is looking for!
>
> Within the CF Administrator, you can specify a site-wide error handler on
> the Settings page. That's not the same as changing the path to default
error
> handlers in the web.xml file. The files specified in web.xml will be used
if
> there's an error in your site-wide error handler, or if you don't specify
a
> site-wide error handler in the CF Administrator and don't catch the error
> with CFERROR or exception handling.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to