Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

ICS.encode

Builds an encoded URL string from a set of attributes.

Syntax

Parameters

base
The base of the URL, for example, "/servlet/ContentServer".

map
Set of key/value pairs for each attribute, for example, pagename/test01.

bSession
A value of true includes the session id in the URL when cookies are turned off on the client's browser. Note that if the session id is included in the URL, the page that URL refers to will not be cached.

Description

The encode method is analogous to the encode XML and JSP tags. It takes a URL base and a set of key/value pairs and creates a URL like the following:

encode also handles encoding for I18N, and optionally inserts a session id into the URL if cookies are turned off on the client's browser. Note that if the session id is included in the URL, the page that URL refers to will not be cached.

Returns

A String; the encoded URL.

Example

The following examples encode a URL:

Example 1:

Example 2:

See Also

decode

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.