Designing and Developing Database-driven Website using Cold Fusion
Application Server Technology
Authoring Dynamic Pages
Comments and any Enquiry related to this Project Welcome Here
Copyright © Abhishek Porwal, DA-IICT, Gandhinagar
Last Updated 4th September 2004

Authoring a dynamic page consists of writing the HTML first, then adding the server-side scripts or tags to the HTML to make the page dynamic. When you view the resulting code, the language appears embedded in the page’s HTML. Accordingly, these languages are known as HTML embedded programming languages. The following example uses ColdFusion Markup Language (CFML):
<html>
<body>
<b>Call Department</b><br>
<!--- embedded instructions start here --->
<cfset department="Sales">
<cfoutput>
Talk to someone in #department#.
</cfoutput>
<!--- embedded instructions end here --->
</body>
</html>
The embedded instructions on this page perform the following actions:
1. Create a variable called department and assign the string “Sales” to it.
2. Write the variable’s string value, “Sales”, in the HTML code.
The application server returns the following page to the web server:
<html>
<body>
<b>Call Department</b><br>
Talk to someone in Sales.
</body>
</html>
The web server sends the page to the requesting browser, which displays it as follows:
Call Department
Talk to someone in Sales.

 


PREFACE
ACKNOWLEDGEMENTS
CONTENTS
My Home Page
Reliance
My Home Page
Hosted by www.Geocities.ws

1