Name
cfservlet
Synopsis
<cfservlet> [<cfservletparam>] ... </cfservlet>
Invokes a Java servlet from a ColdFusion
template. The cfservlet
tag requires
Macromedia’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. This tag has been deprecated in
ColdFusion MX. Servlets and JSP pages can now be called using the
GetPageContext( ).include( )
and
GetPageContext( ).forward( )
functions.
Additionally, servlets can be hosted by J2EE servers other than JRun.
See Chapter 23 and Appendix B for
more information.
Attributes
-
code="
servlet_name
"
The name of the Java servlet that you want to execute. Required.
-
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 injrunhomedir
/ logs/jrunservername
_event.log. Note thatjrunservername
can be specified asdefault
,admin
, or the name of another JRun server that you are running.-
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 ...
Get Programming ColdFusion MX, 2nd Edition 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.