Accessibility
 
Home > Products > Dreamweaver > Support > Working with Studio MX
Dreamweaver Icon Macromedia Dreamweaver Support Center - Working with Studio MX
Test the application server

You can check to make sure your ColdFusion MX application server is running properly by creating a test page and viewing it in a browser.

1 In any text editor (such as Notepad), create a plain text file called test.cfm.
2 In the file, enter the following code
<html>
<head>
<title>Testing your CF MX Application Server</title>
</head>
<body>
Today's Date: <CFOUTPUT>#DateFormat(Now(),"dddd, m/d/yy")#</CFOUTPUT>
</body>
</html>
This code displays the date the page was processed on the server.
3 Copy the test.cfm file to the wildlife_project folder you created in the previous section. Remember, this folder must be in a folder that is published by the web server.
4 In your web browser, enter the URL of your test page, then press Enter.
If PWS or IIS is running on your local computer, you can enter the following URL:
http://localhost/wildlife_project/test.cfm
The test page should open and display the current date.

If the page doesn't work as expected, check for the following possible errors:

The file does not have a .cfm extension.
The page's file path (c:\Inetput\wwwroot\wildlife_project\test.cfm), not its URL (for example, http://localhost/wildlife_project/test.cfm), is entered in the browser's Address text box.
If you type a file path in the browser (as you might be used to doing with normal HTML pages), you bypass the web server and the application server. As a result, your page never gets processed by the server.
The URL contains a typing mistake. Check for errors and make sure the filename is not followed by a slash, such as http://localhost/wildlife_project/test.cfm/.
The page code contains a typing mistake.

Submit feedback about this tutorial.

To Table of Contents Back to Previous document