Name

cfsetting

Synopsis

<cfsetting enablecfoutputonly="Yes|No"
           showdebugoutput="Yes|No">
           catchexceptionsbypattern="Yes|No"
           requesttimeout="seconds">
CFML
[<cfsetting enablecfoutputonly="Yes|No"
            showdebugoutput="Yes|No">
            catchexceptionsbypattern="Yes|No">]

Controls whitespace, debugging output, exception handling, and request timeout parameters within ColdFusion templates.

When the enablecfoutputonly attribute is used, cfsetting tags must occur in matched pairs where both a <cfsetting enablecfoutputonly="Yes"> and a <cfsetting enablecfoutputonly="No"> are present. cfsetting tags may be nested any number of levels as long as there are always matching tag pairs. You don’t need to use paired cfsetting tags with the showdebugoutput, catchexceptionsbypattern, or requesttimeout attribute unless it is used in combination with an enablecfoutputonly attribute. Note that if you provide an end tag (</cfsetting>) for cfsetting, ColdFusion essentially ignores it as it neither functions nor throws an error.

Attributes

catchexceptionsbypattern="Yes|No"

Whether or not to override structured exception handling. Optional. The default is No. This attribute is no longer available in ColdFusion MX.

enablecfoutputonly="Yes|No"

Specifying Yes results in the suppression of all HTML output (including whitespace) between cfsetting tags. Optional. The default is No.

requesttimeout="seconds"

New in ColdFusion MX. Specifies the number of seconds ColdFusion should wait for the page to process before marking the ...

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.