<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000700.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-26T07:26:36</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000700.htm#61019" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000700.htm#35719" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000700.htm#61019">
		<title>coldfusion/7/htmldocs/00000700.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000700.htm#61019</link>
		<description>When trying to use getPageContext().forward() in the onRequestStart method, you must use a check and return false for the forward to work.  This will prevent a loop on the target page.&lt;br /&gt;&lt;br /&gt;For example, if you want to forward to &quot;login.cfm&quot;, you must do:&lt;br /&gt;&lt;cfif arguments.targetPage neq &quot;/login.cfm&quot;&gt;&lt;br /&gt;	&lt;cfscript&gt;&lt;br /&gt;		getPageContext().forward(&quot;login.cfm&quot;);&lt;br /&gt;	&lt;/cfscript&gt;&lt;br /&gt;	&lt;cfreturn false /&gt;&lt;br /&gt;&lt;cfelse&gt;&lt;br /&gt;	&lt;cfreturn true /&gt;&lt;br /&gt;&lt;/cfif&gt;&lt;br /&gt;(*note, this will prevent any other page from running without a bit of modification)</description>
		<dc:creator>Oblio</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-01-30T09:57:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000700.htm#35719">
		<title>coldfusion/7/htmldocs/00000700.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000700.htm#35719</link>
		<description>Printing a simple loop as demonstrated with this code, within the onRequestStart function:&lt;br /&gt;&lt;br /&gt;		&lt;cfscript&gt;&lt;br /&gt;&lt;br /&gt;		writeOutput(&quot;begin&lt;br /&gt;&quot;);&lt;br /&gt;		for(i in this.onRequestStart){&lt;br /&gt;			currMethod=this.onRequestStart;&lt;br /&gt; 			if(i NEQ &quot;next&quot;){&lt;br /&gt;				currValue=currMethod[i];&lt;br /&gt;				if(NOT(isStruct(currValue))){ &lt;br /&gt;					writeOutput(i &amp; &quot;=&quot; &amp; currValue  &amp; &quot;&lt;br /&gt;&quot;);&lt;br /&gt;					}else{&lt;br /&gt;					writeOutput(i &amp; &quot;=not a string value&lt;br /&gt;&quot;);&lt;br /&gt;				}&lt;br /&gt;			}else{&lt;br /&gt;			// handle the value next?&lt;br /&gt;			&lt;br /&gt;			}&lt;br /&gt;		}&lt;br /&gt;		&lt;br /&gt;		&lt;/cfscript&gt;&lt;br /&gt;&lt;br /&gt;prints out the following values:&lt;br /&gt;&lt;br /&gt;Output=true&lt;br /&gt;Metadata=not a string value&lt;br /&gt;PagePath=C:\Inetpub\wwwroot\cfmx7_test\Application.cfc&lt;br /&gt;Access=public&lt;br /&gt;SuperScope=not a string value&lt;br /&gt;ReturnType=any&lt;br /&gt;&lt;br /&gt;There is also a NEXT property of type &quot;class&quot;. Can someone explain what these are used for? I cannot find references to them in the manual.</description>
		<dc:creator>eapostol</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-19T19:51:45</dc:date>
	</item>
	</rdf:RDF>

