Again, this seems to reflect some common confusion.

When you say "I was able to use CFOUTPUT", was that because you wrapped your
references to the #error# variables in a CFOUTPUT? As I said in the talk,
this leads to a false sense that the CFOUTPUT is being executed. It's not.
CF automatically allows display of those #error# variables (like
#error.diagnostics#) without any need for CFOUTPUT.

Again, you'll see that the CFOUTPUT is being sent write down to the browser.
And of course, if you tried to refer to any other CF variables, they'd just
show up in the browser as #whatever#.

Only the new style CFERROR TYPE="exception" can process CF variables.

For anyone else reading all this who's confused, I recommend you check out
the 4-part series of articles I did last year in CFDJ, called "Toward Better
Error Handling", which can all be viewed (like all my articles) by way of my
web site at http://www.systemanage.com/cff/articles.cfm.

/charlie

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, May 06, 2002 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFTALKTor] cferror - This is Strange
>
>
> Some tags work though.  I was able to use <cfoutput>
>
> **********************
>
> sounds like your cf page is not being processed by the cf engine.
>
> -steve
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: [CFTALKTor] cferror - This is Strange
>
>
> Inspired by Charlie's lecture at CF North, I started to develop a better
> way to handle errors.  After trying a couple of things and
> wondering why my
> results were so strange, I finally developed a very simple error template.
> Here is the code.
>
> <cfif true>yes  <cfelse> no </cfif>
>
> When I create an error and call this template with <cferror>, I get this
> output:
>
> yes no
>
> Has this sort of thing ever happened to anyone else?  How did you
> solve it?
>
> This happened on CF5.
>
>
>
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: [EMAIL PROTECTED]
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED])
http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "charles arehart" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to