Getting rid of whitespace in CF

by kai on 09/04/2005

Whitespace is always an issue with CF. Just today I got mad because I wanted to transfer some variables to Flash using the LoadVars object in Flash. Same issue is always upcoming if you deal with XML. Another issue in my CF 6 on Jrun 4 enterprise installation is that there is no way to enable automatic whitespace management via the CF Admin.

While I was surfing around the web to find a nice and better solution, I found a post in Christian Cantrells blog. Besides the fact that his solution is really nice and handy, have a look for the last comment. It's about a servlet filter which takes care of a lot of the work for you automatically.

Very nice solution, it worked great for me.

← PreviousNext →Flash in the can: Saturday

5 comments

Douglas Knudsen 11/04/2005

Tag Kai! Was gehten? ah, my german is poor, too many years without practise. so, hey, checkout http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx_updater.html There is an entry there about whitespace management using JRun and CFMX. chuse! D

Douglas Knudsen 11/04/2005

Tag Kai! Was gehten? ah, my german is poor, too many years without practise. so, hey, checkout http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx_updater.html There is an entry there about whitespace management using JRun and CFMX. chuse! D

O?uz Demirkap? 11/04/2005

... and one note that "lib" directory ('cfusionmx/lib') which is defined does not help for this process. I just put "trimflt.jar" file into "C:CFusionMX7 untimelib" directory and than it works.

Oguz Demirkapi 11/04/2005

Works perfect! :)

Oguz Demirkapi 10/04/2005

It seems a good solution but I could not reach jar file url. It does not work. Can you put jar file somewhere and let us know for link. :)