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.

Oguz Demirkapi April 10, 2005 at 12:00 am

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. 🙂

Douglas Knudsen April 11, 2005 at 12:00 am

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 April 11, 2005 at 12:00 am

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? April 11, 2005 at 12:00 am

… 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 April 11, 2005 at 12:00 am

Works perfect!

🙂

Comments on this entry are closed.

Previous post:

Next post: