0

Hello
I am new user of coldfusion.I just started to learn coldfusion.
I made one file with the name "1_2.cfm"

Code :

<!--- Processing --->
<cfset myQuestion = "What is a variable?">
<cfset myAnswer = "Variables are named storage containers inside programming languages. Just think of variables as any type of named container holding any type of stored content. You simply name the container and store the content. Later you retrieve the content by using the same name.">
<!--- Conenet --->
<cfoutput>
<div>
<h3>Question: #myQuestion#</h3>
<p><strong>Answer:</strong></p>
<p>#myAnswer#</p>
<p>#now()#</p>
</div>
</cfoutput>

Following out put I got:


Question: #myQuestion#

Answer:

#myAnswer#

#now()#

I have stored this file in directory "C:\apache-tomcat-5.5.23\webapps\mylogin"

and I am veiwing this file using tomcat server
http://localhost:8080/mylogin/1_2.cfm


Please help me how to run the cold fusion files.
Thank You

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by terrymodular
0

Did you put the webpage in the right directory. In Apache it is under "HTDOCS" and are you also running under local host?

0

Hello Sir
I searched "HTDOCS".But I didint found
Please Explain me in brief.
Thank you.

0

It is hard to help you without more information - What CF version, where are your HTDOCS located.

Have you done a test as to whether CF is working ?
Test page,

Test database connections, etc.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.