
471
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
descloc = Find("DESC", thisElement);
syntaxloc = Find("SYNTAX", thisElement);
singleloc = Find("SINGLE", thisElement);
endloc = Len(thisElement);
</cfscript>
<tr>
<td><cfoutput>#Mid(thisElement, 6, descloc-nameloc-8)#
</cfoutput></td>
<td><cfoutput>#Mid(thisElement, 6, syntaxloc-descloc-8)#
</cfoutput></td>
<cfif #singleloc# EQ 0>
<td><cfoutput>Yes</cfoutput></td>
<cfelse>
<td><cfoutput>No</cfoutput></td>
</cfif>
</tr>
</cfloop>
</table>
</body>
</html>
2
Change the server from
ldap.mycorp.com
to your LDAP server. You might also need to specify a user ID and
password in the cfldap tag.
3
Save the template as
ldapschema.cfm
in
myapps
under your web root directory and view it in your browser.
Reviewing the code
The following table describes the code and its function: