Home > Contents > Index >
ICS.ENCODE
Builds a URL string from a base and key/value pairs.
Syntax
<ICS.ENCODE BASE="SOME BASE" [SESSION="TRUE OR FALSE"] [OUTPUT="SOME OUTPUT"]/>Parameters
BASE (required)
- Base of the URL.
SESSION (optional)
- Specifies to include the session ID in the URL when set to
true
. Set this parameter totrue
if the session ID is required by the client.
OUTPUT (optional)
- Specifies an optional output variable. If this parameter is not specified the output is streamed to the browser.
Description
This tag builds a URL string from a base and key/value pairs. The keys and values are encoded as required and the session ID can be added optionally.
Error Numbers
There are no possible
errno
for this tag.Example
<SETVAR NAME="base" VALUE="CS.Property.ft.cgipath"/> <ICS.ENCODE BASE="Variables.base/ContentServer" SESSION="true" OUTPUT="url"> <ICS.ARGUMENT NAME="PAGENAME" VALUE="TESTPAGE"/> <ICS.ARGUMENT NAME="k1" VALUE="v1"/> <ICS.ARGUMENT NAME="k2" VALUE="v2"/> <ICS.ARGUMENT NAME="k3" VALUE="v3"/> <ICS.ARGUMENT NAME="k4" VALUE="v4"/> <ICS.ARGUMENT NAME="k5" VALUE="v5"/> </ICS.ENCODE> <CSVAR NAME="Variables.URL/>The browser displays:
/servlet/ContentServer?pagname=testpage&k1=v1&k2=v2&k3=v3&k4=v4&k5=v5See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.