See which tags are supported in CFScript in Railo


I cannot take credit for this little snippet of code, Micha posted this in the Railo newsgroup a while back.

<cfscript>
tags=getTagList().cf;
keys=StructKeyArray(tags);
ArraySort(keys,"textnocase");
loop array="#keys#" index="name"	{
	tag=getTagData("cf",name);
	echo("<b>cf"&name&"</b> - ");
	echo(StructKeyExists(tag,'script'));
	echo('<br>');
}
</cfscript>

You can also easily get this information by checking the Tag Reference in the Railo admin, but it is nice to be able to see  a list of all the tags and whether or not it is supported in cfscript in one place.

Edit:
I have a modified version that just shows the script ready tags you can view.

Advertisements

About Robert Zehnder

Web application developer specializing in ColdFusion/Railo and Open Source development.

Posted on November 4, 2011, in Railo and tagged . Bookmark the permalink. 2 Comments.

  1. Probably worth pointing out that things like function and try/catch do exist, despite not being listed, but I guess are considered keywords when in script form.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: