Aaron Johnson Now with 50% less caffeine!

Posts Tagged ColdFusion

re: CFMX Java-jock jihad

Geoff makes a couple blanket statements in his post about how the Java world doesn’t understand CFMX. I don’t agree with a couple of them:
· ColdFusion remains the only answer to making Java accessible to a mass of non comp-sci web developers — I don’t have a computer science degree, neither do 3 [...]


ColdFusion Developer’s Journal: Writing a Java-based CFX Tag

The second of my articles in ColdFusion Developer’s Journal is available on the website now: Extending ColdFusion with Java: Writing a Java-based CFX Tag. It’s a follow up on the last article I wrote; this one explains how you can write a Java CFX tag, the example again uses Lucene.


Java Collection Types & ColdFusion

At work one of our developers is programming an ecommerce store against a Java API written by a third party. Said Java API returns a TreeMap object from a method and when you try to access that TreeMap object in any fashion, you’ll get an error, specifically:
“Error casting an object of type java.lang.Integer to an [...]


ColdFusion Whois client using Jakarta Commons/Net lib

Doug posted a query on the cfguru list asking how he might retrieve whois information using ColdFusion. I mentioned that there are numerous tags (search on google if you want to see them), but that it’s pretty easy to do within ColdFusion if you drop the Jakarta Commons/Net jar into your ColdFusion lib [...]


ColdFusion Developer’s Journal - Extending ColdFusion with Java

Just got back from a trip to California & Oregon for a family wedding to find that the article I wrote for ColdFusion Developer’s Journal went live… check it out when you have a chance!


Calling Java Constructors with ColdFusion

I mentioned yesterday that Sam posted some great code that lets you upload files to ColdFusion without using CFFILE. His code can be shortened considerably with the use of the init() method:
<cfscript>
fileAsString = “”;
fileReader = createObject(”java”, “java.io.FileReader”);
fileReader.init(form.upFile);
bufferedReader = createObject(”java”, “java.io.BufferedReader”);
bufferedReader.init(fileReader);
try {
   do {
      fileAsString = bufferedReader.readLine();
      processLine(fileAsString);
   } while (true);
} catch (coldfusion.runtime.UndefinedVariableException e) {
[...]


Uploading files with ColdFusion

Sam posted some CF code that gives you the ability to upload a file to a web server without using CFFILE (ie: he uses Java instead): Handling file uploads without CFFILE.
On a related note, Oreilly has an article (Using the Jakarta Commons) that (will) introduce(s) each component in the Jakarta Commons library. Probably [...]


Using Sockets in CFMX

I’ve read emails [1] [2] from a couple different people on the various email lists that CFMX can’t use sockets…. which is true in the sense that CFMX doesn’t have a <cfsocket> tag, but not true in the sense that you can’t easily use sockets in ColdFusion. I banged around this morning for a [...]


Sharing session data between ColdFusion and J2EE components

Informative article on developerWorks titled Together at last: Sharing session data between ColdFusion and J2EE components. After you read that article, read my notes on creating session listeners for CFMX. I show you how to capture CFMX sessionOnStart and sessionOnEnd events using servlet listeners.
I little birdie told me that sessionOnEnd and sessionOnStart [...]


Server-Side Flash Detection Using BrowserHawk @ DEVNET

I wrote an article for Macromedia Devnet which was just published today! Check it out here: Server-Side Flash Detection Using BrowserHawk. If you’ve never used BrowserHawk before, it’ll be a good introduction. However, if you’ve used it with ColdFusion, you should definitely read it, I was able to use BrowserHawk [...]


← Before After →