Comment out the cflocation tags so you can look at your data. Then do this sort of thing.
adjusted for your own code of course.
At first glance, it looks like you overengineered the whole thing.
Not sure how to get <cfdump> to work. So I did a test.
I have default.cfm under the root directory.
It only contains this line:
If I enter XXXX.com into the browser URL it will just display a blank page. How can I get the dump to display in the browser?
Are you sure that default.cfm is automatically servers by your web server. That file is not a common automatic file. ColdFusion usually only configures index.cfm to be automatically serverd if no specific file is requested.
Have you tried XXXX.com/default.cfm do you see the dump display then? Which, of course, is going to be empty becuase you have no url parameters. xxxx.com/default.cfm?test=foobar will show some data in the dump.