<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFSETTING</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFSETTING</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
ページ内での HTML コードの出力など、ページ処理に関する機能を制御します。 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
ページ処理タグ、変数操作タグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfsetting
   enableCFoutputOnly = &quot;yes&quot;、&quot;no&quot; 
   showDebugOutput = &quot;yes&quot;、&quot;no&quot; 
   requestTimeOut = &quot;value in seconds&quot; &gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfcache、cfflush、cfheader、cfhtmlhead、cfinclude、cfprocessingdirective、cfsilent、『ColdFusion MX 開発ガイド』の第18章の「アプリケーションのデバッグとトラブルシューティング」 の「cfsetting タグによるデバッグ出力の制御」
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion MX&#160;6.1: 動作の変更 : タグに本文がある場合は、その内容が実行されます。
</p>

<p>
ColdFusion&#160;MX:
</p>
<ul>

<li> requestTimeOut 属性が追加されました。 </li>

<li>catchExceptionsByPattern 属性は廃止されました。この属性は ColdFusion 5 より後のリリースでは機能せず、エラーが発生する可能性があります。</li>

<li>例外処理が変更されました。構造化例外マネージャによって、最適な cfcatch ハンドラが検索されます (以前のリリースでは、例外はそのタイプの例外を処理できる最初の cfcatch ブロックによって処理されていました)。 </li>
</ul>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
cfsetting の requestTimeout 属性によって、URL 内の requestTimeOut は使用されなくなります。ページのタイムアウトを適用するには、URL 変数を検出し、次のようなコードを使用してページのタイムアウトを変更します。 
</p>
<pre>&lt;cfsetting RequestTimeout = &quot;#URL.RequestTimeout#&quot;&gt; 
</pre>
<p>
このタグを使用すると ColdFusion 出力ページの空白を処理することができます。 
</p>

<p>
cfsetting タグをネストする場合、HTML 出力が表示されるようにするには、各 enableCFoutputOnly = &quot;Yes&quot; ステートメントを enableCFoutputOnly = &quot;No&quot; ステートメントに対応させる必要があります。たとえば、5 つの enableCFoutputOnly = &quot;Yes&quot; ステートメントの後には、HTML 出力を有効にするため、対応する enableCFoutputOnly = &quot;No&quot; ステートメントが 5 つ必要です。 
</p>

<p>
HTML 出力が有効である場合は (処理済みの enableCFoutputOnly = &quot;No&quot; ステートメントの数に関係なく)、最初の enableCFoutputOnly = &quot;Yes&quot; ステートメントによって出力がブロックされます。
</p>

<p>
デバッグサービスが有効で、showDebugOutput =&quot; Yes&quot; の場合、IsDebugMode 関数は Yes を返します。そうでない場合は No を返します。
</p>
<table>
  <tr valign="top">
    <td width="30"><strong>メモ: </strong></td>
    <td>ColdFusion&#160;MX より新しいリリース では &lt;/cfsetting&gt; 終了タグを使用できますが、この終了タグは処理には影響しません。cfsetting 属性は、cfsetting タグ本文の内側と外側のコードに影響します。ColdFusion&#160;MX では、cfsetting の開始タグと終了タグの間のコードが無視されていました。</td>
  </tr>
</table>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>&lt;p&gt;ColdFusion のページで HTML コードの出力を制御するには、CFSETTING を使用します。 
   このタグを使用すると、生成される空白の量を最小限にすることができます。

&lt;cfsetting enableCFoutputOnly = &quot;Yes&quot;&gt;
   このテキストは表示されません。
&lt;cfsetting enableCFoutputOnly = &quot;No&quot;&gt;
   &lt;p&gt;このテキストは表示されます。
&lt;cfsetting enableCFoutputOnly = &quot;Yes&quot;&gt;
   &lt;cfoutput&gt;
      &lt;p&gt;cfoutput 内のテキストは常に表示されます。
   &lt;/cfoutput&gt;   
&lt;cfsetting enableCFoutputOnly = &quot;No&quot;&gt;
   &lt;cfoutput&gt;
      &lt;p&gt;cfoutput 内のテキストは常に表示されます。
   &lt;/cfoutput&gt;   
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="ENABLECFOUTPUTONLY">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ENABLECFOUTPUTONLY</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">


<ul>

<li>Yes: cfoutput タグの外側にある HTML の出力をブロックします。</li>

<li>No: cfoutput タグの外側にある HTML を表示します。</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="SHOWDEBUGOUTPUT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">SHOWDEBUGOUTPUT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "Yes"

<ul>

<li>Yes: Administrator でデバッグが有効になっている場合は、デバッグ情報を表示します。</li>

<li>No: 生成ページの最後に表示されるデバッグ情報を表示しません。 </li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="REQUESTTIMEOUT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">REQUESTTIMEOUT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">


<ul>

<li>秒数です (整数)。ページがレスポンスのないスレッドとして処理されるまでのタイムリミットです。ColdFusion Administrator のタイムアウトの設定をオーバーライドします。</li>
</ul>


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
