Questions tagged [coldfusion]

ColdFusion is a server-side rapid application development platform, implementing the dynamic general purpose CFML programming language. Please include CFML version, OS, and web server in questions.

ColdFusion is a server-side rapid application development platform from Adobe, implementing the dynamic general purpose CFML programming language.

The term ColdFusion is sometimes colloquially used to refer to the CFML language (ColdFusion Markup Language), however there are multiple independent implementations.

ColdFusion runs on the JVM using a servlet engine. Starting with ColdFusion 10, it uses a customised version of Tomcat. Earlier versions, ColdFusion 6 through 9, are bundled with JRun. (WAR installs and other servlet engines are supported.)

Tag usage

The tag has been de-synonymised from the tag to be its own distinct tag. If you are asking about general CFML concepts, be sure to use . If you are asking about a non-Adobe ColdFusion implementation, be sure to use , or tags as appropriate.

For all questions, remember to indicate which CFML engine version(s) you are running, the servlet engine (where relevant), and any CFML frameworks you might be using.

Versions

The initial release was as early as 1995 by Allaire. It was acquired by Adobe in 2005.

The most recent release, ColdFusion 2018, was released in July 2018.

CFML Fiddles

  • You can run arbitrary CFML code against both Adobe ColdFusion and Railo servers in parallel on cflive.net, though at this time there is no way to store and share code there in a traditional fiddle sense.

  • You may also load and execute any GitHub Gist (obviously only useful for CFML gists) on TryCF.com by substituting the gist-id into this url: http://www.trycf.com/scratch-pad/gist/{gist-id}, such as http://www.trycf.com/scratch-pad/gist/7926175. By creating and linking to a try-cf-wrapped gist, you can share runnable code here on Stack Overflow.

Free ColdFusion Programming Resources

14100 questions
22
votes
1 answer

Coldfusion 10, IIS 7.5 - Getting a 404 even though file exists

I'm getting a 404 even though the page exists on disk. I've ran the Web Server Configuration Tool and rebooted several times. Handler mapping for .cfm files (configuration tool seems to have…
TechFanDan
  • 3,329
  • 6
  • 46
  • 89
21
votes
2 answers

What Response Should Be Sent Back a When Cross-Site Request Forgery (CSRF) is Detected

What response should I send back when a Cross-Site Request Forgery (CSRF) is detected? There is a scanning tool which I cannot get a hold of that is saying one of my pages is not protected against CSRF. But it is. The response I send back is a…
gfrobenius
  • 3,987
  • 8
  • 34
  • 66
20
votes
7 answers

How can I get the SQL from a query object in ColdFusion?

How can I get the SQL used to generate a cfquery object? If I cfdump the object, it shows it having an "SQL" property, which contains the actual query. Turning on debugging won't help me because I am making an API call, so output is not HTML and…
Kip
  • 107,154
  • 87
  • 232
  • 265
20
votes
2 answers

Why is ColdFusion adding whitespace when I call a function in cfoutput?

If I do something like this in ColdFusion: foo="#foo()#" The resulting HTML has a space in front of it: foo=" BAR" However, if it is not a function call it works fine, i.e.:
Kip
  • 107,154
  • 87
  • 232
  • 265
20
votes
10 answers

How to sort an array of structs in ColdFusion

I have an array of structs in ColdFusion. I'd like to sort this array based on one of the attributes in the structs. How can I achieve this? I've found the StructSort function, but it takes a structure and I have an array. If this is not possible…
Kip
  • 107,154
  • 87
  • 232
  • 265
19
votes
2 answers

How to get POST data in ColdFusion

How do you get values from a POST request in ColdFusion? Figured the hard way that POST.id doesn't work like URL.id.
IzzyCooper
  • 586
  • 1
  • 5
  • 14
19
votes
1 answer

Switch to different XSLT Processor in ColdFusion

I am using two different versions of ColdFusion, ColdFusion 9 and ColdFusion 10, and there are different XSLT Processors in both. ColdFusion 9 is using Apache Xalan while ColdFusion 10 is using Saxon. So, is it possible to change the XSLT…
Abhishekh Gupta
  • 6,206
  • 4
  • 18
  • 46
19
votes
3 answers

How to get list of scheduled tasks and last run results in ColdFusion?

We're trying to build a dashboard for our cron jobs ---- CF, Java, SQLServer, etc. so that we can see when things were run last, what the result was, and when they're scheduled to run next. Is there a way with the CFAdmin API or some undocumented…
19
votes
2 answers

Coldfusion 10 slower when using Java 1.7 compared to 1.6

I have a webservice running on Coldfusion 10 64bit. While investigating a memory leak I went to upgrade the JRE from 1.6 to 1.7 but noticed a significant performance hit. I had created a simple test webservice which on JRE 1.6 I could run easily at…
Alan Bullpitt
  • 456
  • 4
  • 13
18
votes
8 answers

How to suppress the file corrupt warning at Excel download?

I have a web page which links to an Excel 2007 worksheet. It is a .xls file and not .xlsx file. When I click on the link I get the usual dialog box to either open/save the Excel file. On clicking 'Open', I get the following warning message- The…
Arnkrishn
  • 29,828
  • 40
  • 114
  • 128
18
votes
7 answers

In ColdFusion, is there a way to determine what server the code is running on?

Is there any way in ColdFusion code to determine on what server the code is executing? I have few load-balanced ColdFusion servers. I want to be able to know on which server the code is running when I catch an exception, so I can include that…
Patrick McElhaney
  • 57,901
  • 40
  • 134
  • 167
18
votes
5 answers

What's the ColdFusion 9 script syntax for cfsetting?

I'm trying to convert an Application.cfc to script. The original had this:
Micah
  • 1,221
  • 17
  • 42
18
votes
3 answers

ColdFusion unit test frameworks

As a related sub-question - are there any CF unit test frameworks that support or make it easier to use mocks/stubs? The 2 that I spotted in a quick google that look the most promising are MXUnit and CFUnit. Are there others, and which one(s) have…
jinglesthula
  • 4,446
  • 4
  • 45
  • 79
18
votes
3 answers

Are MD5 hashes always either capital or lowercase?

I'm passing an HMAC-MD5 encoded parameter into a form and the vendor is returning it as invalid. However, it matches what their hash generator gives me, with the exception of capitalization on the letters. What I did to get around this was use an…
Patrick Schomburg
  • 2,494
  • 1
  • 18
  • 46