home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-
- <HTML>
- <HEAD>
- <TITLE>CFML 4.0 Syntax Checker</TITLE>
-
- <script language="Javascript">
-
- var DocRemote = 0;
-
- function makeRemote(){
-
- if(DocRemote){
- if(DocRemote.closed){
- DocRemote = 0;
- makeRemote();
- }else{
- DocRemote.focus();
- }
- }else{
- DocRemote = window.open('search.cfm',
- 'Search',
- 'scrollbars,resizable,width=510,height=300');
- }
- }
-
- </script>
-
- <script language="JavaScript1.1">
-
- blank = new Image();
- blank.src = 'images/mouseovers/blank.gif';
-
- imgBack = new Image();
- imgBack.src = 'images/mouseovers/back.gif';
-
- imgSearch = new Image();
- imgSearch.src = 'images/mouseovers/search.gif';
-
- imgTop = new Image();
- imgTop.src = 'images/mouseovers/toplevel.gif';
-
- imgUp = new Image();
- imgUp.src = 'images/mouseovers/uplevel.gif';
-
- imgNext = new Image();
- imgNext.src = 'images/mouseovers/next.gif';
-
- </script>
- </HEAD>
-
- <body background="images/bgblue.gif" bgcolor="#99CC99" text="#333333" vlink="#669966">
- <basefont size=2 face="Arial, Helvetica">
- <center>
- <table width="600" border="0" cellspacing="0" cellpadding="2" bgcolor="#000066">
- <tr><td><a name="top"></a>
-
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="white" width=600>
-
- <tr> <!--- 7 cols. Col 7 = color only --->
- <td width=50 nowrap bgcolor="000066"></td>
- <td width=25 nowrap bgcolor="000066"></td>
- <td width=25 nowrap bgcolor="000066"></td>
- <td width=425 nowrap bgcolor="000066"></td>
- <td width=50 nowrap bgcolor="000066"></td>
- <td width=13 nowrap bgcolor="000066"></td>
- <td width=2 nowrap rowspan=99 bgcolor=336633> </td>
- </tr>
-
- <tr>
- <td colspan=1> </td>
- <td colspan=5 height=25 align=right valign="top">
- <!--- Navbar --->
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign=top>
- <img src="images/mouseovers/blank.gif" name="DescText" width=157 height=33 border=0><br>
- </td>
- <td valign=top>
- <a href="main.htm" OnMouseOut="DescText.src=blank.src" OnMouseOver="DescText.src=imgBack.src"><img src="images/navwidgets/back.gif" width=80 height=33 border=0></a><br>
- </td>
- <td>
- <a href="javascript: makeRemote();" OnMouseOut="DescText.src=blank.src" OnMouseOver="DescText.src=imgSearch.src"><img src="images/navwidgets/search.gif" width=39 height=33 border=0></a><br>
- </td>
- <td>
- <a href="main.htm" OnMouseOut="DescText.src=blank.src" OnMouseOver="DescText.src=imgUp.src"><img src="images/navwidgets/up.gif" width=41 height=33 border=0></a><br>
- </td>
- <td>
- <img src="images/navwidgets/next.gif" width=40 height=33 border=0><br>
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
-
- <tr>
- <td height=75 bgcolor=ffFFff colspan=5> </td>
- <td rowspan=99 bgcolor=339933> </td> <!--- Col 6 = color only (Col 7 is color only too) --->
- </tr>
- <!-- End of header content. Page content displays below. -->
-
- <tr>
- <td bgcolor=ffFFff> </td>
- <td bgcolor=ffFFff> </td>
- <td align="right" bgcolor=ffFFff colspan=2><img src="images/welcomecover/allaire.gif" width="177" height="25" hspace="25" border="0" alt="allaire">
-
- <br>
- <br>
-
- </td>
- <td bgcolor=ffFFff> </td>
- </tr>
- <tr>
- <td colspan=1 bgcolor=ffFFff> </td>
- <td colspan=3 bgcolor=ffFFff>
- <font face="Arial Black, Helvetica" size="+2">CFML 4.0 Syntax Checker</font>
- </td>
- <td bgcolor=ffFFff> </td>
- </tr>
- <!--- Put some space between heading and body --->
- <tr><td height=8 bgcolor=ffFFff colspan=5> </td></tr>
-
- <tr>
- <td colspan=3 bgcolor=ffFFff> </td>
- <td bgcolor=ffFFff>
- <font face="Arial, Helvetica">
- <p>Version 4.0 of the Cold Fusion Application Server features
- stricter enforcement of CFML syntax rules. Strict checking can
- uncover hidden bugs and other types of undesirable behaviors in
- your CFML templates. Allaire recommends that you always use the
- strictest possible level of CFML template validation.</p>
-
- <p>In rare cases, the more relaxed validation mechanisms used by
- previous versions of Cold Fusion may have allowed you to use
- syntactically incorrect CFML constructs. The CFML Syntax Checker
- is a simple application that can aid you in the process of
- discovering which of your CFML templates may not conform to the
- rules CFML 4.0.</p>
-
- <p>Use the form below to specify the directory where your CFML
- templates are located. If you have some legacy DBML code, you may
- want to change the file search filter to <em>*.?fm</em> so that
- both <em>*.dbm</em> and <em>*.cfm</em> files are checked. If you
- do not want to look for CFML templates in nested sub-directories,
- you should uncheck the Recurse checkbox. (<strong>Note:</strong>
- Don't forget to check your custom tag templates. They reside in
- the CustomTags directory under the root of your Cold Fusion
- installation.)</p>
-
- <p>The syntax checker will return a list of the templates that
- failed the syntax checks and the error message that each failed
- template generated. (<strong>Note:</strong> If you have many
- templates syntax checking can take a few minutes. Please, be
- patient.)</p>
- </font>
-
- <!--- Establish common parameter set --->
- <cfif isDefined("url.execute")>
- <cfparam name=directory default=#form.directory#>
- <cfparam name=filter default=#form.filter#>
- <cfif isDefined("form.recurse")>
- <cfset recurse = true>
- <cfelse>
- <cfset recurse = false>
- </cfif>
- <cfelse>
- <cfparam name=directory default="">
- <cfparam name=filter default="*.cfm">
- <cfparam name=recurse default=true>
- </cfif>
-
- <!--- Display processing form --->
- <hr>
- <form action="cfmlsyntaxcheck.cfm?execute=yes&requestTimeout=1800" method="POST">
- <table>
- <cfoutput>
- <tr><td><font face="Arial, Helvetica">Directory:</font></td><td><input type="Text" name="Directory" value="#directory#" size="80"></td></tr>
- <tr><td><font face="Arial, Helvetica">Filter:</font></td><td><input type="Text" name="Filter" value="#filter#" size="12"></td></tr>
- <tr><td><font face="Arial, Helvetica">Recurse:</font></td><td><input type="Checkbox" name="Recurse" <cfif recurse>checked</cfif>></td></tr>
- </cfoutput>
- </table>
- <input type="reset">
- <input type="Submit" name="Submit" value="Check Syntax">
- </form>
- <hr>
- <font face="Arial, Helvetica">
- <!--- Display result set --->
- <cfif isDefined("url.execute")>
-
- <hr><p><h2>Syntax Check Results</h2><p>
-
- <cf_syntaxcheck
- directory=#directory#
- filter=#filter#
- recurse=#recurse#
- resultquery=resultQuery>
-
- <cfif resultQuery.recordCount gt 0>
-
- <CFOUTPUT QUERY=resultQuery>
- <hr color="ff0000">
- Template Path: <b>#TemplatePath#</b><p>
- #ErrorMessage#
- </CFOUTPUT>
-
- <cfelse>
-
- <b>All templates comply with CFML 4.0 syntax rules!</b>
-
- </cfif>
- </cfif>
- </font>
- </td>
- <td bgcolor=ffFFff> </td>
- </tr>
-
- <!--- begin footer --->
- <tr><td height=100 colspan=5 bgcolor=ffFFff> </td></tr>
- <tr>
- <td colspan=4 align=right bgcolor=ffFFff>
- <a href="main.htm"><img src="images/navwidgets/lowerback.gif" WIDTH=50 HEIGHT=31 border=0 alt="Back"></a><a href="main.htm"><img src="images/navwidgets/lowertop.gif" alt="Up Level" WIDTH=41 HEIGHT=31 border=0></a><img src="images/navwidgets/lowernext.gif" alt="Next" WIDTH=50 HEIGHT=31 border=0><br>
- </td>
- <td bgcolor=ffFFff> </td>
- </tr>
- <tr><td height=120 colspan=5 bgcolor=ffFFff> </td></tr>
- <tr>
- <td colspan=5 height=29 valign=top>
- <font size="-2" face="Arial, Helvetica">
- <p>
- <a href="http://www.allaire.com"><img src="images/navwidgets/allaireblue.gif" width=230 border=0 hspace=0 vspace=0 height=29 align="left" alt="allaire"></a>
- <a href="mailto:allairedoc@allaire.com">AllaireDoc@allaire.com</a><br>
- Copyright © 1998, Allaire Corporation. All rights reserved.<br>
- </font>
- </td>
- </tr>
-
- </table>
- </td>
- </tr>
- </table>
- </BODY>
- </HTML>
-