How to dump a structure using cfdump in coldfusion

cfdump - dump a structure

cfdumpStructure.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdump tag example: how to dump a structure</title>
</head>

<body>
<h2 style="color:Crimson">cfdump Tag Example</h2>

<cfset Employee=StructNew()>
<cfset Employee.Name.FirstName="Jenny">
<cfset Employee.Name.LastName="Jones">
<cfset Employee.City="Rome">
<cfset Employee.Email="Jenny@test.com">
<cfset Employee.StartDate="5-Dec-2005">

<cfdump var="#Employee#" label="Employee">
</body>
</html>





More ColdFusion examples