Debugging URL and Path Problems

URL- and path-related problems are some of the easiest to diagnose and resolve because they tend to be binary in nature—they either work consistently or they fail consistently.

Images Are Not Displayed

If image files (and other files) aren’t always displayed when you reference them from within ColdFusion, the problem might be path related. If you’re using relative paths (and you generally should be), be sure that the path being sent to the browser is valid. Having too many or too few periods and slashes in the path is a common problem.

Tip

Most browsers let you check image paths (constructing full URLs from relative paths in your code) by right-clicking (Windows) or Control-clicking (Mac) the image and viewing ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.