Questions tagged [cfml]

CFML is a dynamic general-purpose programming language, especially suited for web and intranet development. There are compatible but independent implementations by Adobe ColdFusion, Lucee, Railo and Open BlueDragon - each with a common CFML core but different advantages/focuses.

CFML (Cold Fusion Markup Language) is a dynamic general-purpose programming language, especially suited for web and intranet development. There are compatible but independent implementations by Adobe ColdFusion, Lucee, Railo and Open BlueDragon - each with a common CFML core but different advantages/focuses.

Most CFML implementations run using a Java servlet engine. ColdFusion versions 6-9 ship with JRun, but from CF10 onwards uses a customised version of Tomcat. Lucee, Open BlueDragon and Railo run on Jetty/Resin/Tomcat, though they can all use any J2EE app server. There is also a BlueDragon.NET which runs on Microsoft's .NET platform instead of Java.

The and tags have been aliased to this tag.

For all questions, remember to indicate which CFML engine version(s) you are running on (such as , , , or ), and any CFML frameworks you might be using.


Free ColdFusion Programming Resources


CFML Frameworks

There are currently two well maintained / active MVC frameworks for CFML, both are convention over configuration based. They are:

All 3 frameworks run on ColdFusion 10+ and Lucee 4.5+.

FW/1 has support for clojure integration, this requires Lucee 4.5. Clojure integration is optional and not required to run CFML code.

Deciding which one to use will depend on your needs and/or coding style.

854 questions
68
votes
13 answers

Wrapping lists into columns

I'm using ColdFusion to populate a template that includes HTML unordered lists (
    s). Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns. Is there an HTML, ColdFusion or perhaps…
alexp206
  • 1,739
  • 1
  • 16
  • 20
40
votes
10 answers

Picking a ColdFusion MVC Framework

I am taking over a lot of the ColdFusion stuff that is lingering at our shop and they are insistent it stay on ColdFusion and that new projects in this area MUST be done in CF - basically this part is non-negotiable. I am not very experienced in CF…
naspinski
  • 34,020
  • 36
  • 111
  • 167
37
votes
8 answers

Can I get a query row by index in ColdFusion?

I want to get a specific row in a ColdFusion Query object without looping over it. I'd like to do something like this: SELECT * FROM tablename But it's giving me an…
Brian Bolton
  • 3,633
  • 8
  • 35
  • 43
36
votes
9 answers

Join Two Arrays in ColdFusion

Is there a built-in way to join two arrays in ColdFusion, similar to JavaScript's array.concat()?
Yisroel
  • 8,164
  • 4
  • 26
  • 26
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
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
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
13 answers

Best IDE/Editor for ColdFusion?

I am just starting at a job in which I will be using a lot of ColdFusion. What is the best IDE/Editor to use?
dmr
  • 21,811
  • 37
  • 100
  • 138
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
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
2 answers

Coldfusion: How to split a string into a set of variables

I'm trying to teach myself ColdFusion. I have a string coming in from the database in this format: domain.com
www.facebook.com/facebookpage
http://instagram.com/instagrampage It is all coming from #getRacer.txtDescription#. The format…
Jack Pilowsky
  • 2,275
  • 5
  • 28
  • 38
1
2 3
56 57