Cfservletparam - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

194

CFSERVLETPARAM

The CFSERVLETPARAM is a child of CFSERVLET. It is used to pass data to the servlet.
Each CFSERVLETPARAM tag within the CFSERVLET block passes a separate piece of
data to the servlet.
See also CFSERVLET.
Syntax
<CFSERVLET
...>
<CFSERVLETPARAM
NAME="servlet parameter name"
VALUE="servlet parameter value"
>
...
<CFSERVLETPARAM
NAME="servlet attribute name"
VARIABLE="ColdFusion variable name"
TYPE="INT" or "DOUBLE" or "BOOL" or "DATE" or "STRING"
>
...
</CFSERVLET>
NAME
Required. If used with the VALUE attribute, it is the name of the servlet parameter.
If used with the VARIABLE attribute, it is the name of the servlet attribute. See the
Usage section for details on passing parameters. See the Usage section for details
on passing parameters.
VALUE
Optional. The value of a name-value pair to be passed to the servlet as a
parameter.
VARIABLE
Optional. The name of a ColdFusion variable. See the Usage section for details on
passing parameters. The value of which will appear in the servlet as an attribute.
See the TYPE attribute for a way to pass data type information to the Java servlet.
TYPE
Optional. The data type of the ColdFusion variable being passed. By default,
ColdFusion usually passes variables as strings; however, to ensure that the data is
correctly type on the Java side, you can specify any of the following types: INT,
DOUBLE, BOOL, DATE, or STRING. See the Data Types table under Usage for
information about how these types map to Java object types.
Usage
There are two different ways that CFSERVLETPARAM can be used to pass information
to the servlet: by value or by reference. Depending on the method used, this
information appears in the servlet either as a parameter (by value) or attribute (by
reference).
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents