Home > Contents > Index >
CSVAR
Displays the value of a variable, session variable, list item, built-in, or counter.
Syntax
<CSVAR NAME="VALUE"/>Parameters
NAME (required)
- Value of the variable, session variable, list item, built-in or counter to display.
Description
The
CSVAR
tag displays the value of a variable, session variable, list item, built-in, or counter. For more information about variables, see the Sites Developer's Guide.Error Numbers
There are no possible
errno
for this tag.Example
To display the value of the
myvar
variable:<SETVAR NAME="myvar" VALUE="today is payday!" /> I am happy because <CSVAR NAME="Variables.myvar"/><BR/>The following text appears in the browser:
"I am happy because today is payday!"
Note
If the variable "
myvar
" was not set at the time ofCSVAR
, then the browser displays, "Variables.myvar
"To display the value of the session variable
tempvar
:
<SETSSVAR NAME="tempvar" VALUE="soda" /> <CSVAR NAME="SessionVariables.tempvar"/><BR/>The following text appears in the browser,
"soda"
To display the value of the list item "
mylist.tblname
":
<CSVAR NAME="mylist.tblname"/>To display the value of the built-in "
CS.Year
":
The current year is <CSVAR NAME="CS.Year"/><BR/>If the year is 2002, the following text appears in the browser:
The current year is 2002To display the value of the counter
mycount
:
<CSVAR NAME="Counters.mycount"/>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.