enableCFoutputOnly
* yes: blocks output of HTML that is outside cfoutput tags.
* no: displays HTML that is outside cfoutput tags.
showDebugOutput
* yes: if debugging is enabled in the Administrator, displays debugging information.
* no: suppresses debugging information that would otherwise display at the end of the generated page.
Posted Date:- 2021-11-29 00:43:55
This tag used to Control the requested URL's page processing, such as the output of HTML code in pages.It has 3 attributes.
* enableCFoutputOnly
* requestTimeOut
* showDebugOutput
All are optional attributes. you should mention atleast one attribute.Here I will explain a bit about requestTimeOut attribute.Rest two explained for the next question.
This attribute added in ColdFusion MX varsion.
It used to define time limit, after which ColdFusion processes the page as an unresponsive thread.
Overrides the time-out set in the ColdFusion Administrator.
Posted Date:- 2021-11-29 00:43:05
CfQuery
* Safer for SQL injection attack
* Can do any sql operations
Cfinsert/Cfupdate
* Designed to do one thing and one thing only
* Only work with FORM fields
* FORM fields be named the same as the table columns
* Cannot do any processing or manipulation of the values
* When updating the row primary key must be present as a FORM field (possibly as a hidden field).
* If you are using CFCs as a database abstraction layer then you can't use cfinsert/cfupdate
Posted Date:- 2021-11-29 00:42:25
It defines lifetime or scope of a cookie variable.
expires attribute is optional attribute for cfcookie tag.Default value is till the browser is closed.If you didn't mention the expires attribute for an cookie variable it will available upto browser close.
Posted Date:- 2021-11-29 00:41:28
Tag Version:
<cfparam name="variableName" default="defaultValue">
Script Version:
<cfscript>
if(Not isDefined('variableName'))
variableName = "defaultValue"
</cfscript>
Posted Date:- 2021-11-29 00:40:52
Dynamic SQL is a SQL code that your program generates using variables before the SQL is executed.
In coldfusion, CFQUERY give full provision to write all conditional logic & looping to derive the dynamic sql statement to execute.
You can use dynamic SQL to accomplish tasks such as adding WHERE clauses to a search based on the fields that the user filled out on a search criteria page.
Posted Date:- 2021-11-29 00:39:33
Both are used to replaces special characters in a string with their HTML-escaped equivalents
Difference between HTMLCodeFormat function and HTMLEditFormat is that HTMLEditFormat does not surround the text in an HTML pre tag.
Posted Date:- 2021-11-29 00:39:05
No.Datasource Names For All The Database Tags Within CFTRANSACTION Must Be The Same.
The workaround for the problem of CFTRANSACTION with different data source,
Use same datasource in CFQUERY
but inside the cfquery prefix the table with desired database in the query.
<CFTRANSACTION>
<cfquery datasource=same>
SELECT * FROM TableName
</cfquery>
<cfquery datasource=same>
SELECT * FROM other.dbo.TableName
</cfquery>
</CFTRANSACTION>
Posted Date:- 2021-11-29 00:38:28
using cfexecute tag, we can call the external exe files.Below example executes the Windows NT version of the netstat network monitoring program, and places its output in a file.
<cfexecute name = "C:WinNTSystem32
etstat.exe"
arguments = "-e"
outputFile = "C:Tempoutput.txt"
timeout = "1">
</cfexecute>
Posted Date:- 2021-11-29 00:37:15
Custom tags can be stored in any of the following locations. ColdFusion will search for them in the order listed.
In the same directory as the calling page - while this is easy for demonstration purposes, it's not very practical, as it means that the custom tag is only available within that directory.
In a directory (or subdirectory of a directory) specified in ColdFusion Administrator under Extensions -> Custom Tag Paths.
In the cfusion/CustomTags directory or one of its subdirectories.
Posted Date:- 2021-11-29 00:36:38
<style>
table {
background-color: yellow;
}
td {
margin: 0 10px 0 0;
}
</style>
<table>
<tr>
<td>Hello world</td>
</tr>
</table>
Posted Date:- 2021-11-29 00:36:09
.myfontclass {
font-family: Verdana;
font-weight: bold;
}
Posted Date:- 2021-11-29 00:35:32
SELECT
movie.title,
director.name
FROM movie LEFT JOIN director ON movie.id = director.movie_id
Posted Date:- 2021-11-29 00:33:41
<cfmodule template=”testmod.cfm”
param1=”yes”
param2=5>
Posted Date:- 2021-11-29 00:31:59
A cold fusion page can contain JSP or a servlet and a JSP page can contain Coldfusion applications. This facilitates easy access to build hybrid functions and applications which can combine coldfusion components and servlets. How would you loop through a SQL result set stored in the CF variable named my “results” and output the result set columns named “cola” and “colb” in an html table?
<table>
<cfoutput query=”results”>
<tr>
<td>#cola#</td>
<td>#colb#</td>
</tr>
</cfoutput>
</table>
Posted Date:- 2021-11-29 00:31:15
There are two primary types of file systems in ColdFusion which are used extensively they are Coldfusion templates and coldfusion pages. Developers in addition to these use CFML. These can contain HTML and often CFML for Dynamic content.
Posted Date:- 2021-11-29 00:30:27
Developers can benefit from extensible gateways by limitless variety of emerging protocols. Developers can benefit by the creation of event gateways.
Posted Date:- 2021-11-29 00:29:57
Enterprise manager helps you in admin functions. This will help you to create multiple cf server instances, through which you can experience advanced security, performance, and savings.
Posted Date:- 2021-11-29 00:29:25
The tag which aids you in debugging is cftimer tag; this tag gives you the exact time which happens between executions of each line of code. cfapplication helps you prevent intersite scripting attack.
Posted Date:- 2021-11-29 00:28:58
This CFCHART provides more than 200 different attributes which can be altered and these attributes can be used to control animation, labels, and colors. This CFCHART engine is used to produce high quality graphs, charts, sketches, and these charts can also aid you in Business analysis. These charts aid you very much in developing a good business presentation as you can control every part of it.
Posted Date:- 2021-11-29 00:28:27
CFML language provides a 32 bit encryption which is symmetric key based. This function is called as Encrypt. Cold fusion at present uses 32 bit encryption but if your application requires 1024 bit encryption you can happily use that function because cold fusion integrates with third party libraries. Cold fusion also uses Hash function which is very important in safeguarding passwords. They use MD5 and XOR based algorithm.
Posted Date:- 2021-11-29 00:28:00
ColdFusion has a utility called cfencode which blocks viewing of the source code on coldfusion pages which has an application. Although guarantee of this product is not guaranteed, to an extent this can block viewing of source code altogether. As ColdFusion runs on a web server source code can be blocked completely.
Posted Date:- 2021-11-29 00:27:30
The three major internet security threats are
1) Memory leak during transmit of information
2) Impersonation which is like an exact clone which enters as legitimate
3) Unauthorized access
These mechanisms are handled by adobe by using Data encryption, User Authentication and Access control.
Posted Date:- 2021-11-29 00:27:04
Cold fusion 8 has enhanced security features, it provides multiple adobe cold fusion installations on the server which necessarily removes the threat of accidental deletion, intrusion, addition, etc because the remote lies with multiple administrators and they can set permissions and access. Data sources, Cold fusion components and custom tags can be differentiated on their work accordingly.
Posted Date:- 2021-11-29 00:26:42
In previous installations of Adobe cold fusion multiple servers were required to run the application but adobe cold fusion 8 mitigated the problem by clustering Coldfusion into multiple physical installations which take over the load if any application fails during its course of time. This also allows in easy maintenance and possible reduction in maintaining multiple servers. This was made possible by J2EE server.
Posted Date:- 2021-11-29 00:26:21
The benefits of multiple server instances are, a single server is enough to deploy a host of applications which makes it highly applicable this was not the case when MX7 was present. Applications running on a server need not be stopped for maintenance as the work and load is shared upon multiple servers. Security, optimized applications and clustering are some of the main benefits of Adobe cold fusion multiple server instances.
Posted Date:- 2021-11-29 00:25:52
Server code of ColdFusion cannot be viewed or modified. The language of ColdFusion itself is documented and subjected to rights laid down by adobe. The two open source engines which are parsing ColdFusion’s markup languages are Blue dragon and Smith project. Blue dragon is a J2EE version.
Posted Date:- 2021-11-29 00:25:25
No it is not possible to write ColdFusion in ColdFusion. Actually ColdFusion was written in Java and to write programs we need to implement other kinds of programs such as Java, .NET etc. These programs are required because ColdFusion alone cannot survive.
Posted Date:- 2021-11-29 00:25:06
Sandbox security is a superset of resource security. Sandbox security lets you create multiple sandboxes, each corresponding to a different directory. For each sandbox, you specify a set of resource limitations that apply to all ColdFusion pages in the sandbox directory and its subdirectories.
Posted Date:- 2021-11-29 00:24:36
with the scope 'caller' - <cfset caller.callingpagevariable = 10>
Posted Date:- 2021-11-29 00:24:00
with the scope 'attributes' - <cfset atrributes.customtagvariable = 10>
Posted Date:- 2021-11-29 00:23:44
<cfsilent> is used Suppress output produced by CFML within a tag's scope.
Posted Date:- 2021-11-29 00:22:58
Saves the generated content of the cfsavecontent tag, including the results of evaluating expressions and executing custom tags, in the specified variable.
<cfsavecontent
variable = "variable name">
the content
</cfsavecontent>
Posted Date:- 2021-11-29 00:22:37
StructKeyExists - Determines whether a specific key is present in a structure.
IsDefined - Evaluates a string value to determine whether the variable named in it exists.
Posted Date:- 2021-11-29 00:22:17
<cfcomponent rest="true" restpath="restService">
<cffunction name="sayHello" access="remote" returntype="String" httpmethod="GET">
<cfset rest = "Hello World">
<cfreturn rest>
</cffunction>
</cfcomponent>
Posted Date:- 2021-11-29 00:22:00
<cfinvoke webservice="http://www.xmethods.net/sd/2001/TemperatureService.wsdl"
method="getTemp"
returnvariable="aTemp">
<cfinvokeargument name="zipcode" value="55987"/>
</cfinvoke>
<cfoutput>The temperature at ZIP code 55987 is #aTemp#</cfoutput>
Posted Date:- 2021-11-29 00:20:58
<cfif isdefined("variables.test")>
Posted Date:- 2021-11-29 00:20:35
CFLDAP :-
Provides an interface to a Lightweight Directory Access Protocol(LDAP) directory server, such as the Netscape Directory Server.
<cfldap action=" query: returns LDAP entry information only. Requires name, start, and attributes attributes.add: adds LDAP entries to LDAP server. Requires attributes attribute.modify: modifies LDAP entries, except distinguished name dn attribute, on LDAP server. Requires dn. modifyDN: modifies distinguished name attribute for LDAP entries on LDAP server. Requires dn.delete: deletes LDAP entries on an LDAP server. Requires dn." server = "server name" etc>.
CFLOGIN :-
A container for user login and authentication code. ColdFusion runs the code in this tag if a user is not already logged in. You put code in the tag that authenticates the user and identifies the user with a set of roles.<cflogin applicationToken = "token" cookieDomain = "domain" idletimeout = "value" allowconcurrent = true|false"usebasicauth = "true|false"> <cfloginuser name = "name" password = "password" roles = "roles"> </cflogin>
Posted Date:- 2021-11-29 00:20:16
Gets the name of an authenticated user.
The name of an authenticated user.
This function works with cflogin authentication or web server authentication. It checks for a logged-in user as follows:
It checks for a login made with cfloginuser.
If no user was logged in with cfloginuser, it checks for a web server login (cgi.remote_user).
Posted Date:- 2021-11-29 00:19:22
<cfdump>,<cfabort>,<cftrace> and enable debugging settings in coldfusion administrator.
Posted Date:- 2021-11-29 00:19:04
Default Application timeout is 2 days and Default session timeout is 20 minutes. we can modify this from application.cfc in <cfapplication> tag or in coldfusion administrator.
Posted Date:- 2021-11-29 00:18:49