Name

CFSERVLET — New as of ColdFusion 4.5

Synopsis

<CFSERVLET> 
  [<CFSERVLETPARAM>]
  ... 
</CFSERVLET>

Invokes a Java servlet from a ColdFusion template. The CFSERVLET tag requires Allaire’s JRun software in order to work. Attributes and parameters may be passed to the Java servlet by nesting CFSERVLETPARAM tags within the CFSERVLET tag.

Attributes

CODE=" servlet_name "

The name of the Java servlet that you want to execute. Required.

JRUNPROXY=" server : port "

The hostname or IP address and the port where the JRun engine is located. Required when connecting to a JRun 3.x server. Optional when connecting to a JRun 2.3.3 server, as the JRun engine is assumed to be on the same machine as the ColdFusion application server and listening on port 8081.

TIMEOUT=" seconds "

The number of seconds ColdFusion waits while processing a CFSERVLET request before timing out the operation. Optional. The default is 60.

WRITEOUTPUT="Yes|No"

Whether or not to write output from the servlet as inline text or if it should be stored in a variable. If Yes, ColdFusion outputs the text to the screen. If No, ColdFusion writes the text to the variable CFSERVLET.OUTPUT. Optional. The default is Yes.

DEBUG="Yes|No"

Whether or not to write additional information about the JRun connection status and other activity to the JRun error log file. For JRun 2.3.3, the error log is located in jrunhomedir/jsm-default/logs/stderr.log. For JRun 3.0, the error log is found in jrunhomedir/logs/jrunservername_event.log. Note ...

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.