Thank you, I will try mappings.

onError is on my list of things to try, I'm just working through all  
the options to familiarise myself with them.

Cheers

Stefan




On 16 Feb 2009, at 02:55, Dave Watts wrote:

>
>> I'm using this in my Application.cfc:
>>
>> <cferror type="exception" template="errorexception.cfm">
>> <cferror type="request" template="errorrequest.cfm">
>>
>> Works fine if the page that throws the error is in the root of my
>> site. But if a file in /includes throws an error I get:
>> Error attempting to resolve the template errorexception.cfm.
>>
>> Short of inserting the absolute URL what options do I have? I'd like
>> to use a relative path, but how would that work when I do not know in
>> which subdirectory the error will occur?
>
> You can use mappings created in the CF Administrator. Any path
> beginning with a slash uses a mapping. Mapped paths can be resolved
> from any script on the server.
>
> Also, instead of using CFERROR for exceptions, you might also consider
> using the onError event handler in Application.cfc.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5754
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to