Home > Contents > Index >
ics:encode
Builds a URL string from a base and key/value pairs.
Syntax
<ics:encode base="base" [session="true|false"] [output="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
<ics:encode base='<%ics.GetProperty("ft.cgipath")+"ContentServer"%>' <ics:argument="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>The browser displays:
/servlet/ContentServer?pagname=testpage&k1=v1&k2=v2&k3=v3&k4=v4&k5=v5See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.