Actually starting with 4.5 you can execute CF code in a template specified 
by the <CFERROR> tag, but only if you use the TYPE="Exception" and 
EXCEPTION="Any" in your tag.  Such as:

<CFERROR TYPE="EXCEPTION" EXCEPTION="Any" TEMPLATE="/cf_error_handler.cfm" 
MAILTO="[EMAIL PROTECTED]">

Or you can specify in your CF Administrator default templates for this for 
a site wide error trap, and still be able to use CF code in your error 
handling template.

At 10:14 AM 1/12/01 -0500, you wrote:
>you can't execute cf code on error pages.
>what i do is put all the cfcode in hidden form variables, and onload submit
>the form to another page that executes the cold fusion and emails me the
>error code.
>
>----- Original Message -----
>From: "Andres" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Friday, January 12, 2001 9:56 AM
>Subject: CFerror and its
>
>
> > Hello all,
> > i have an application.cfm that calls a cf error tag like this:
> >
> >
> > <cfapplication
> > name="myapp"
> > clientmanagement="Yes"
> > sessionmanagement="Yes"
> > setclientcookies="Yes"
> > sessiontimeout="#CreateTimeSpan(0, 0, mins_until_timeout, 0)#">
> >
> > <cferror type="VALIDATION" template="site_errors.cfm" mailto="[EMAIL PROTECTED]">
> >
> > <cfinclude template="variables.cfm">
> >
> >
> > The problem is that when a validation error occurs, the error page appears
> > fine, but the CF inside the error template is not executed... it shown as
>if
> > it was a regular html page with all the cf showing.
> >
> > can someone tell me why this is happening and how i can correct the
> > problem??
> >
> >
> > thanks
> >
> > andres
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to