One of the most important ones is that railo always references the scope name when you use URL, FORM etc no matter if a local variable with this name exists or not. To give you an example, run this code in CF and in railo:
To make railo behave the same way, you've to add a full reference to the function -
<cfparam name="url.step" type="string" default="1" />
<cfset a_call = PrintURL( 'http://tunesBag.com/' ) />
<cfdump var="#a_call#">
<cfscript>
function PrintURL( url ) {
return url;
}
</cfscript>
return arguments.url
In ColdFusion you'll see http://tunesBag.com as output, in railo the URL structure. Some further explanations concerning the scopes and this "bug" can be found here (Adobe Livedocs) and here (Railo Bugtracker)
No comments:
Post a Comment