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

 

Utilities.stringFromValList

Creates a URL-like set of name/value pairs from a map.

This method has two variants:


Utilities.stringFromValList

Creates a URL-like set of name/value pairs from a map.

Syntax

Parameters

map
The map you want to compress into a string.

Description

The stringFromValList method creates a URL-like set of name/value pairs from a map; for example, x=y&a=b&c=d. In previous versions of Sites, stringFromValList accepted an IList rather than a map. In the current version of Sites, IList is a map.

stringFromValList returns a string, but that string needs to be encoded to be URL safe. Note that empty strings are not preserved.

Returns

The string of name/value pairs.


Utilities.stringFromValList

Creates a URL-like set of name/value pairs from a map.

Syntax

Parameters

map
The map you want to compress into a string.

bEncode
Set this value to true to encode keys and values from outside Sites.

Description

The stringFromValList method creates a URL-like set of name/value pairs from a map; for example, x=y&a=b&c=d. In previous versions of Sites, stringFromValList accepted an IList rather than a map. In the current version of Sites, IList is a map.

stringFromValList returns a string, but that string needs to be encoded to be URL safe. Note that empty strings are not preserved.

Returns

The string of name/value pairs.

 

   Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.