does this catch a request error?


--
Stephenie Hamilton
Senior ColdFusion Administrator
Express Technologies, Inc.
want CF_Freedom?
try CFXHosting.com
Winner of the 2000 ColdFusion Developer's Journal Best ColdFusion Web Host!!



-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 10:47 AM
To: CF-Talk
Subject: RE: CFerror and its


Well I thought that you couldn't run cf code in the specified error template
too until my fellow UK CFUG compadres put me right.

You can.

Code in application.cfm:

<cferror type="EXCEPTION"
         template="error.cfm"
         mailto="my_email"
         exception="ANY">

code in error.cfm:

<cfset errmsg = ReplaceNoCase(error.diagnostics, "<br>", Chr(13), "ALL")>
<cfset errmsg = REReplace(errmsg, "<[^>]*>", "", "All")>
<cfmail to="#error.mailto#" from="some_email_address"
        subject="error:"
        server="mailserver">
Problem occured at #now()#

physical page: #error.template#\#error.querystring#

Problem:  #errmsg#
</cfmail>

Works fine for me everytime!

-------------------------------------------------------
Rich Wild
Senior Web Designer

-------------------------------------------------------
e-mango.com ltd                      Tel: 01202 587 400
Lansdowne Place                      Fax: 01202 587 401
17 Holdenhurst Road
Bournemouth                   Mailto:[EMAIL PROTECTED]
BH8 8EW, UK                      http://www.e-mango.com
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of e-mango.com ltd,
unless otherwise explicitly and independently indicated
by an authorised representative of e-mango.com ltd.
-------------------------------------------------------




> -----Original Message-----
> From: Andres [mailto:[EMAIL PROTECTED]]
> Sent: 12 January 2001 15:21
> To: CF-Talk
> Subject: RE: CFerror and its
>
>
> i thougght that one of the improvements in CF4.5 was the
> ability to run cf
> code in the the cferror tamplate pages... i may have missread that...
>
> thanks for everyone's help.
>
> andres
>
> -----Original Message-----
> From: Brandon Paolin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 10:15 AM
> To: CF-Talk
> Subject: Re: CFerror and its
>
>
> 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