Chapter 1: ColdFusion Tags
Usage
The syntax of the CFSERVLET tag is designed to be consistent with the HTML markup
<SERVLET> and <PARAM> used by some web servers to invoke Java servlets from
.shtml pages in what is known as SSI, Server-Side Includes.
CFSERVLET Variables
Variable Name
CFSERVLET.Output
CFSERVLET.servletResponseHeaderName
Note
Example
<CFSERVLET
JRUNPROXY="236.3.3.4:8083"
TIMEOUT="300"
WRITEOUTPUT="YES">
<CFSERVLETPARAM
<CFSERVLETPARAM
<CFSERVLETPARAM
<CFSERVLETPARAM
</CFSERVLET>
The servlet must exist somewhere in the class path of the JRun engine
executing the servlet. The JRun "servlet" subdirectory is a good location
since it is already in JRun's class path and because classes in this directory
are automatically reloaded by JRun if they change.
CODE="MyServletName"
NAME="Param1"
NAME="Param2"
NAME="Attribute1"
NAME="Attribute2"
Description
Inline text output of the servlet is directed to
this structure if the WRITEOUTPUT attribute is
set to No.
The CFSERVLET return structure also contains
the values of any response headers returned by
the servlet. To access a response header,
specify its name in
servletResponseHeaderName.
VALUE="Value1">
VALUE="Value2">
VARIABLE="CFVar1">
VARIABLE="CFVar2">
193
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?