Home > Contents > Index >  
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

device:get

Retrieves the value of a device property from the loaded device object and stores it in a Sites variable.

Syntax

Parameters

name (required)
Input. Name of the loaded device object whose property value needs to be retrieved. This device must be loaded and assigned this name before you can pass its name to this tag. (See device:load )

property (required)
Input. Name of the property whose value you want to retrieve.

output (optional)
Input. The name of the output variable to create to store the value of the property. If you do not supply a name for this variable, Sites uses one with the same name as the property.

Description

The device:get tag retrieves the value of the specified property of a loaded device object and stores it in the specified output variable.

You typically use this tag to extract the device information (from a loaded device object).Supported property names are : suffix, useragent and devicegroup.

Error Numbers

Possible values of errno include:

Value
Description
-3700
The requested property is not supported by the loaded device.
-3702
No device object found with the given name.

Example

See Also

device:hascapability
device:capability
device:load

   Home > Contents > Index >

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