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
31
votes
3 answers

How do I concatenate two strings and store them into the same struct key

I'm using Coldfusion. I want to concatenate two strings into the same struct key, but I keep getting an error of "can't convert x into a boolean." For example:
Mohamad
  • 34,731
  • 32
  • 140
  • 219
30
votes
2 answers

MySQL data type: Text,,, Erroring: Data Too Long

I have a field as follows in MySQL: Type: Text Length: 0 Decimals: 0 And when I try to insert data around the size of 4 pages of MS Word, Coldfusion errors with: Data Too Long from the DB. I thought TEXT data type was able to expand and handle this…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
30
votes
5 answers

How to get started writing a code coverage tool?

Looking for books or other references that discuss actually how to write a code coverage tool in Java; some of the various techniques or tricks - source vs. byte code instrumentation. This is for a scripting language that generates Java byte code…
bill
29
votes
7 answers

How to do a cfdump inside a cfscript tag?

In order to debug I would like to dump certain variables on to my web page. How can I do that from inside a cfscript tag? I tried the following but it isn't working: ...
Arnkrishn
  • 29,828
  • 40
  • 114
  • 128
28
votes
1 answer

Why does 0.06 + 0.01 = 0.07 in ColdFusion?

Why don't math operations in ColdFusion seem to be affected by floating point math issues? Take the code: result = 0.06 + 0.01; writedump(result); writedump(result.getClass().getName()); Which outputs 0.07 java.lang.Double However the…
bittersweetryan
  • 3,383
  • 5
  • 28
  • 42
28
votes
2 answers

cfqueryparam with like operator in ColdFusion

I have been tasked with going through a number of ColdFusion sites that have recently been the subject of a rather nasty SQL Injection attack. Basically my work involves adding tags to all of the inline sql. For the most part I've…
Doug R
  • 5,749
  • 2
  • 28
  • 32
27
votes
4 answers

Things to watch out for in ColdFusion 9 with CF-ORM

What are some of the things you've observed in ColdFusion 9 with CF-ORM (Hibernate) that one should watch out for?
Henry
  • 32,689
  • 19
  • 120
  • 221
26
votes
4 answers

Are ColdFusion objects passed by reference or by value?

Are ColdFusion objects (i.e. CFCs invoked via cfobject) normally passed by reference or by value (copied in memory)? And is it possible to force ColdFusion to pass an object in either manner?
Soldarnal
  • 7,558
  • 9
  • 47
  • 65
26
votes
2 answers

How to convert a string representation of a number to a number in coldfusion?

I want to be able to convert a string number such as "1,427.76" to a number in coldfusion but the comma is making it fail. Is there a simple way to do it besides having to remove the comma?
Scott Chantry
  • 1,115
  • 5
  • 16
  • 29
26
votes
3 answers

ColdFusion: Get variable type

The ColdFusion tag is giving me much less information than the PHP function var_dump(). Is there any other possibility in CF to find out of what type (integer, string etc.) my variable is?
Dollique
  • 952
  • 2
  • 10
  • 29
24
votes
1 answer

Upload Files To Google Drive Using ColdFusion

*NEW UPDATED FOR BETTER SECOND PART - NOW GETS TO "308 Resume Incomplete", even though file should be just one upload! I am using the foundation of cfgoogle from Ray Camden. But Google has deprecated the code for document uploads. The new standard…
Canadaboy
23
votes
8 answers

restart application without restarting server?

Is there a way to restart a ColdFusion application without restarting the entire server? There are two ColdFusion applications running on a server and I only want to restart one of them.
dmr
  • 21,811
  • 37
  • 100
  • 138
22
votes
3 answers

How to convert Query column to a list in ColdFusion

I'm trying to convert ColdFusion query column to a list, what is the best way to do so? I thought that there is a built in function that allows one to easily convert a query's column in to a list, if there is what is it?
erikvold
  • 15,988
  • 11
  • 54
  • 98
22
votes
2 answers

ColdFusion: More efficient structKeyExists() instead of isDefined()

Which of these is more efficient in ColdFusion? isDefined('url.myvar') or structKeyExists(url, 'myvar')
James T
  • 3,292
  • 8
  • 40
  • 70
22
votes
8 answers

ColdFusion https connection failure

I have an API that runs fine on one of my two web servers but not on the other one or on my local machine, instead I get a connection failure when I send https requests as part the login process. The requests are very simple and works without a…
CPB07
  • 679
  • 3
  • 13
  • 23