Links: CFGroovy2 homepage | source for this page.
This demo creates an array of strings, CFDUMPs it, and then uses various scripting languages to add new elements to the array and output it to the page. Groovy is guaranteed to work, Python, PHP, and Ruby will also run if you have Jython, Quercus, and JRuby jars on your classpath.
| array | |
|---|---|
| 1 | Hello, world. |
[Hello, world., Groovy is...Groovy!]
[Hello, world., Groovy is...Groovy!, JavaScript is lovely!]
List: "Hello, world." "Groovy is...Groovy!" "JavaScript is lovely!" "CF Runtime: ColdFusion Server 8,0,1,195765" "User Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)"