Contents > Getting Started Building ColdFusion MX Applications > CFML Basics > Working with ColdFusion pages > Creating a ColdFusion page Browsing your code PreviousNext

Browsing your code

To ensure that the code you wrote is working as expected, you must view the ColdFusion page in a browser. The following procedure describes how to view the ColdFusion page that you created earlier.

To view the ColdFusion page:

  1. Open a web browser and go to the following URL:

    http://127.0.0.1/test/cfpage.cfm

    The address 127.0.0.1 refers to the localhost and is only valid when you view pages locally. The URL for a remote site would include the server name or IP address of the server where ColdFusion is installed; for example: http://<serveripaddress>/test/cfpage.cfm.

    If you are using the ColdFusion MX J2EE configuration, you may also need to include a context root in the URL, http://<server>/<context-root>/<page>.cfm. For example, if you deploy an EAR file and use the default context root of cfmx, you specify http://127.0.0.1/cfmx/test/cfpage.cfm.

    The following figure shows the cfpage.cfm in the browser:


    This is a picture of the feature being described.
  2. Do the following tasks:
    1. View the source code that was returned to the browser. In most browsers, you can view the source by right-clicking on page then selecting View Source.
    2. Compare the browser source code with the source code that appears in your editor. Notice that the CFML tags were processed on the page but did not appear in the source that was returned to your browser.

      As described in Introducing ColdFusion MX, ColdFusion processes all the instructions (CFML tags and functions) it receives on a page, and then returns the results of the instructions that your browser can interpret and display.


Contents > Getting Started Building ColdFusion MX Applications > CFML Basics > Working with ColdFusion pages > Creating a ColdFusion page Browsing your code PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.