Another ColdfusionCommunity member!

On November 16, 2007, in ColdFusion, by Anuj Gakhar

I joined ColdfucionCommunity.org 2 days, a bit late in blogging about this, I know! But really, am surprised by the number of people already using it. Way to go, Nick Tong! You can find me here http://www.coldfusioncommunity.org/profile/AnujGakhar

Tagged with:  

Java version of CFDIRECTORY: Updated

On November 8, 2007, in ColdFusion, by Anuj Gakhar

My original post on this subject got some improvements and suggestions from different people. So I decided to put together all the improvements and write a new post. The improvements were suggested by Dan Wilson and Qasim Rasheed. Thanks to both of them. The function can be found here Updated DirectoryListing Function. Here is what […]

Tagged with:  

Java version of CFDIRECTORY

On November 6, 2007, in ColdFusion, by Anuj Gakhar

I had some free time today so I thought of writing some code to mimick CFDIRECTORY functionality using Java objects. As always, the idea of being able to call Java from within CF has always got me excited. I have seen a lot of code out there that uses JAVA to list files in a […]

Tagged with:  

Coldfusion XML to Struct

On November 5, 2007, in ColdFusion, by Anuj Gakhar

XML parsing in Coldfusion has improved a lot in the last few versions but converting a complex XML object to a Coldfusion structure is still a struggle I beleive. There are a few custom tags out there for doing this but the ones that I have used or know are all only for simple structures, […]

Tagged with:  

Coldfusion 9 – Centaur?

On November 1, 2007, in ColdFusion, by Anuj Gakhar

Just found out from Ray’s blog that Coldfusion 9 has been code named Centaur. I am a little surprised by this as I really think people havent been able to fully absorb or migrate to CF8 yet because there are so many new features, and its a bit early to hear about the next release. […]

Tagged with:  

Using Xpath with Coldfusion

On October 31, 2007, in ColdFusion, by Anuj Gakhar

I find Xpath very powerul for searching through a XML document. I have used it extensively in some of my projects and it might be worth it to post some of the examples here. For this example, I have used the books.xml sample xml file which can be found here. Following are some examples of […]

Tagged with:  

3 things I love about Coldfusion!

On October 28, 2007, in ColdFusion, by Anuj Gakhar

1) The coding style is very easy (tag based) and the learning curve is minimal. It takes minutes to get used to a new tag or new functionality and within minutes, you can have the new feature up and running. 2) The CF user community is not huge as compared to other communities but its […]

Tagged with:  

getHostName

On October 22, 2007, in ColdFusion, by Anuj Gakhar

Just came across this rather interesting way to get the current hostname programmatically. Thought it might be useful to post here. [xml] <cfset inet = CreateObject("java", "java.net.InetAddress")> <cfdump var = "#inet.getLocalhost().gethostname()#">[/xml]

Tagged with:  

Consuming webservices in Coldfusion

On October 20, 2007, in ColdFusion, by Anuj Gakhar

We all know how to consume webservices in CF, using the CFINVOKE or using CreateObject(). However, using the above, its relatively hard to consume complex webservices, specially with complex datatypes. I normally use CFHTTP to the rescue which eliminates the need for any datatype mappings. Here is an example. Lets try to consume the dateservices […]

Tagged with:  

CF Application and Session Scopes

On October 20, 2007, in ColdFusion, by Anuj Gakhar

Accessing Application and Session Scope in Coldfusion is generally straightforward but here is a rather smart way of doing it.The first step is to acces the CF runtime objects like below :- [xml] <cfset appTracker = createObject(“java”,“coldfusion.runtime.ApplicationScopeTracker”)/> <cfset sessionTracker = createObject(“java”,“coldfusion.runtime.SessionTracker”)/>[/xml] And this is how you get all the existing applications in CF runtime. [xml] […]

Tagged with:  
© 2011 Anuj Gakhar