Ben Forta

Blog

June 14, 2002

Suppressing Component Output

CFC methods generally do not generate output, rather, they return data. As such, it is advisable to suppress method output so that white space is not created and output is not generated inadvertently. To suppress method output set OUTPUT="no" in the call. (Applies to: ColdFusion MX)

June 13, 2002

Building Argument Collections

Arguments (parameters) passed to (when invoking CFC's or Web Services) are usually passed in NAME=value pairs. But if you need to build your arguments programmatically, here is another option - create a structure (with the StructNew() function) and populate it with all the arguments (using the...

June 12, 2002

Converting to J2EE Based Sessions

Converting an application that uses ColdFusion sessions to use J2EE sessions? Be careful. If your code ever refers to SESSION.CFID or SESSION.CFTOKEN directly that code will break (as those variables do not exist in J2EE sessions). SESSION.URLTOKEN and SESSION.SESSIONID, however, do exist in J2EE...

June 11, 2002

Ending Sessions on Browser Close

ColdFusion SESSION variables use two cookies (named CFID and CFTOKEN) to identify clients. These persist even after a browser is closed, and so ColdFusion sessions can remain active even if a browser is closed and then reopened. J2EE sessions terminate when a browser closes, so if you need this...

June 10, 2002

Auto Loading Java Class Files

ColdFusion code can access Java class files via , and these files can be auto loaded if necessary. To auto load a JAR file simply place it in the webroot/WEB-INF/classes directory. (Applies to: ColdFusion MX)

June 9, 2002

Auto Loading Java Archives

ColdFusion code can access Java archive files (JAR files), and can auto load these if necessary. To auto load a JAR file simply place it in the webroot/WEB-INF/lib directory. (Applies to: ColdFusion MX)

June 8, 2002

Sharing Sessions With Java

ColdFusion SESSION variables may be managed by either ColdFusion or the underlying J2EE server. Both are used the same way (just refer to SESSION.variable), but the way they are stored is different as is the way they are identified (ColdFusion uses a CFID and CFTOKEN, J2EE uses a jsessionid). J2EE...

June 7, 2002

JSP Tags and Namespaces

JSP tags and tag libraries are accessible in CFML via the tag. When is used a PREFIX is specified, and the value passed to PREFIX is the namespace into which the tag is loaded. Calls to JSP tags must use that prefix in the format of (the JSP syntax). (Applies to: ColdFusion MX)

June 6, 2002

Securing Resources With Sandboxes

A sandbox is a virtual entity governed by rules that you define. Sandboxes allow you to secure specific data sources, the use of some tags and functions, specific files and directories, and even IP addresses and ports so that only certain users may access them. Server sandboxes are an ideal...

June 5, 2002

Passing Arguments

is used to invoke ColdFusion Components and to consume Web Services. Arguments may be passed to CFC's and Web Services in two ways, either as NAME=value pairs in , or passed to tags which must be enclosed within and tags. (Applies to: ColdFusion MX)

Page 426 of 489 (4889 posts)