Authoring dynamic pages
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:
Create a variable called department and assign the string “Sales”
to it.
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.
The scripting or tag-based language used depends on the server technology. Here
are the most popular languages for the five server technologies supported by
MX:
Server technology Language
ColdFusion ColdFusion Markup Language (CFML)
ASP.NET Visual Basic
C#
Active Server Pages (ASP) VBScript
JavaScript
JavaServer Pages (JSP) Java
PHP PHP
1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101