User Guide

86 Chapter 2: ColdFusion Tags
The default location of Verity collections is as follows:
Server configuration:
Windows: C:\CFusionMX7\verity\collections
UNIX system: /opt/coldfusionmx7/verity/collections
J2EE configuration: webapp_root/WEB-INF/cfusion/verity/collections
Example
<!-------------------------------------------------------------------------
(coll_actn.cfm)
Check for server platform and use its default Verity Collection directory.
If you did not install ColdFusion MX in the default directory, or if you use
the J2EE configuration, or if your webroot is not C:\CFusionMX7\wwwroot, you
might need to change the path in this example. For example, for JRun4 the path
might be C:\JRun4\Verity\Collections\
--------------------------------------------------------------------------->
<cfif Find("Windows", Server.OS.Name)>
<cfset collPath = "C:\JRun4\Verity\Collections\">
<cfelse>
<cfset collpath = "/opt/coldfusionmx7/verity/collections/">
</cfif>
<!--------------------------------------------------------------------------
Process form input and do the requested cfcollection operation.
--------------------------------------------------------------------------->
<cfif IsDefined("form.CollectionName") AND IsDefined("form.CollectionAction")>
<cfif form.CollectionName is not "">
<cfswitch expression="#FORM.CollectionAction#">
<cfcase value="Create">
<cfcollection action="CREATE" collection="#FORM.CollectionName#"
path="#collPath#" categories="yes">
<h3>Collection created.<br>
Use CFINDEX to populate it.</h3>
</cfcase>
<cfcase value="Repair">
<cfcollection action="REPAIR" collection="#FORM.CollectionName#">
<h3>Collection repaired.</h3>
</cfcase>
<cfcase value="Optimize">
<cfcollection action="OPTIMIZE" collection="#FORM.CollectionName#">
<h3>Collection optimized.</h3>
</cfcase>
<cfcase value="Delete">
<cfcollection action="DELETE" collection="#FORM.CollectionName#">
<h3>Collection deleted.</h3>
Eastern European/Middle Eastern Language Pack
Arabic Greek Polish Turkish
Bulgarian Hebrew Russian
Czech Hungarian Russian2