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
17
votes
5 answers

Lint for ColdFusion

Is there an equivalent of JSLint for ColdFusion?
antony.trupe
  • 10,640
  • 10
  • 57
  • 84
17
votes
1 answer

How do I clear the coldfusion query cache without restarting the server?

I have several queries that I cache using the cachedwithin="#CreateTimespan(...)#" attribute of the cfquery tag. There are times when I need to clear the cache (or just re-execute the query to get a new cached copy). Historically, I've done one of…
Jake Feasel
  • 16,785
  • 5
  • 53
  • 66
17
votes
8 answers

White Space / Coldfusion

What would be the correct way to stop the white space that ColdFusion outputs? I know there is cfcontent and cfsetting enableCFoutputOnly. What is the correct way to do that?
loo
  • 707
  • 10
  • 22
16
votes
6 answers

Trying to find a syntax highlighter for ColdFusion in Notepad++

I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor. I have googled but can't seem to find an answer so…
Michael BW
  • 1,070
  • 3
  • 13
  • 26
16
votes
3 answers

How to log information from inside

I am learning to use . Is there any way I can log some messages or values inside the ? like outside I can use , Is there any way or Tag something like that, i can use to print the messages in log file inside…
CFUser
  • 2,295
  • 5
  • 32
  • 37
15
votes
6 answers

Tools for website/web application load testing?

Before going into production, our client demands actual numbers of how many users our web application can handle. We have all kinds of features implemented including asset management (file uploads/downloads), documents import/export, various…
zarko.susnjar
  • 2,053
  • 2
  • 17
  • 35
15
votes
6 answers

When should I use # in ColdFusion?

This has been one of the biggest obstacles in teaching new people ColdFusion. When to use # is ambiguous at best. Since using them doesn't often create a problem it seems that most people gravitate to using them too much. So, what are the basic…
Tom Hubbard
  • 15,820
  • 14
  • 59
  • 86
14
votes
4 answers

ColdFusion - When to use the "request" scope?

Been going over my predecessor's code and see usage of the "request" scope frequently. What is the appropriate usage of this scope?
robertmyers
14
votes
11 answers

Select one column DISTINCT SQL

Added: Working with SQL Server 2000 and 2005, so has to work on both. Also, value_rk is not a number/integer (Error: Operand data type uniqueidentifier is invalid for min operator) Is there a way to do a single column "DISTINCT" match when I don't…
Organiccat
  • 5,633
  • 17
  • 57
  • 104
13
votes
1 answer

How to handle timezones in CFML?

How to handle timezones in CFML? So far all apps I've wrote just use the default timezone of the CF server and/or SQL server. What do you guys usually do? Do you store all dates in GMT with GetTimezineInfo() and then DateAdd(), and translate all…
Henry
  • 32,689
  • 19
  • 120
  • 221
13
votes
10 answers

ColdFusion Security

What are the best practices for securing a coldfusion webpage from malicious users? (including, but not limited to, sql injection attacks) Is cfqueryparam enough?
Andrew
  • 133
  • 4
11
votes
3 answers

How do I determine the context in which a ColdFusion object resides?

So, given that I have an instance of this component: foo.cfc And, this other component, fooParent.cfc:
Jake Feasel
  • 16,785
  • 5
  • 53
  • 66
11
votes
1 answer

How should I use maxlength in CFQUERYPARAM list="true"?

I'm curious how the maxlength attribute works in CFQUERYPARAM when you are passing a list. Does the maxlength apply to the length of the entire list (i.e. length of "1,2,3,4,5,6" = 11)? Or does the maxlength apply to each item in the list? I cannot…
Eric Belair
  • 10,574
  • 13
  • 75
  • 116
11
votes
8 answers

Is OpenBD or Railo a viable replacement for ColdFusion?

Has anyone here had any experience with running OpenBD or Railo in production? We have some legacy CF6.1 apps that need to be hosted somewhere and I'm wondering if OpenBD or Railo is stable enough for production use, won't require a great deal…
Rob
  • 5,512
  • 10
  • 41
  • 45
11
votes
2 answers

Unexpected behaviour with accessors=true on a component

I am trying to use synthesised accessors on a component on Lucee (although this issue seems to be the same on ColdFusion too). Repro code: // Person.cfc component accessors=true { property firstName; property lastName; function…
Adam Cameron
  • 29,677
  • 4
  • 37
  • 78
1
2
3
56 57