GetContextRoot() - get the path of J2EE server context root for the current request
GetContextRoot.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GetContextRoot function example: how to get the path of J2EE server context root for the current request</title>
</head>
<body>
<h2 style="color:Crimson">GetContextRoot Function Example</h2>
<cfset ContextRoot=GetContextRoot()>
<cfset request.URL = "#GetContextRoot()#/CFIDE/administrator/">
<cfoutput>
ColdFusion Administrator Page: <a href="#request.URL#">ColdFusion Administrator Page</a>
</cfoutput>
</body>
</html>
- GetBaseTemplatePath() - get the absolute path of an application's base page
- GetCurrentTemplatePath() - get the current template path who call this function
- GetDirectoryFromPath() - get a directory from an absolute path
- GetMetaData() - get the metadata information for coldfusion query object
- GetTempDirectory() - get the temporary directory that coldfusion uses for temporary files
- SetLocale() - set the country language local for coldfusion processing and the page returned to the client
- GetMetricData() - get server performance metrics
- GetPageContext() - get the current coldfusion page context object
- GetTempFile() - create a temporary file in a directory