The output directive allows for the substitution of a variable or the result of an OML function into a page.
The output directive uses the following syntax:
<%= { &variable | { package:function | built-in } [ share=variableList ]
[ escape=char ] [ parm1=parm1 [ parm2=parm2 … [ parm25= parm25] ] ] } %>
The output directive contains the following keywords:
This is the first of two forms for the output directive. Specifying any OML variable name will result in the value of this variable being substituted into the page.
This is the second form for the output directive. Specifying either your own OML function to invoke or one of the ESP built-in functions will result in the value returned by the function being substituted into the page.
Identifies the variables to be shared to the called procedure. By default, no variables are shared. The format must be a list of names separated by commas. If a generic set of variables is to be shared, then specify a prefix followed by an asterisk. To share just a stem or MDO, follow the name with a period. Do not specify ampersands before the names.
Specifies a variable substitution escape character. The end result is to parse each parameter on the escape character, do variable substitution on each chunk, and then concatenate them together. This allows unintentionally invalid variable names to be processed. For example, escape=\ parm1=hello&fred\world results in parm1=hello whole world (assuming that &fred contains whole). This processing is only valid for the PARM parameters.
These keywords identify the parameters to be passed to the function. The parameters that you identify here must be parameters that you can use with the SETVARS command.
If a variable is specified, the current value for that variable is returned and inserted into the page. If an OML function is specified, the function is called, and the data returned by the function is inserted into the page.
<%= &ipaddr %>
<%= &Request.QueryString.ipaddr %>
<%= $IPPKG:SNMPGetSingleAttribute parm1='&ipaddr' parm2='oid=1.2.3.4.56.1.45.1.0' %>