Home > Contents > Index >
Retrieves a variable from a packedargs string, optionally removing it from the string.
<render:unpackarg
packed="string containing packed args"
unpack="variable to unpack"
remove="true | false"
outvar="name of resultant packedargs variable"
/>
packed (required)packedargs variable. unpack (required)remove (required)outvar (required)This tag extracts a name-value pair from a url-encoded (packed) string. It sets the extracted variable into the variable scope for later use. Optionally, it can remove the variable key-value pair entirely. The new packed string is then set as an output variable as well.
In most cases, the packed string will correspond to a variable called packedargs. If outvar is set to packedargs, then the packedargs variable will be overwritten.
The possible values of errno include:
Value |
Description |
|---|---|
-10004 |
A required parameter is missing . |
The following example, taken from the FirstSite II Wrapper CSElement unpacks the rendermode variable so that it can be passed into another tag. The rendermode variable is not removed from the packedargs string, leaving the overwritten packedargs variable unchanged.
<render:unpackarg unpack="rendermode" remove="false"
packed='<%=ics.GetVar("packedargs")%>' outvar="packedargs"/>
| Home > | Contents > | Index > | ||
|
Oracle JSP Tag Reference |
|||