Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
device:hascapability
Checks if the current device supports the given capability and conditionally evaluates the body of the tag.
Syntax
<device:hascapability name="name of the loaded device object" capability="capability name of the loaded device object"/>Parameters
name (required)
- Input. Name of the loaded device object. This device must be loaded and assigned this name before you can pass its name to this tag. (See
device:load
)capability (required)
- Input. Name of the capability.
Description
The
device:hascapability
tag checks if the current device supports the given capability and conditionally evaluates the body of the tag.Error Numbers
Possible values of
errno
include:
Value Description -3700 The capability is not supported by the loaded device. -3702 No device object found with the given name.Example
<device:hascapability name="loadeddeviceobjname" capability="capability name">...body to be executed conditionally...</device:hascapability>See Also
device:capability device:load device:get
Home > Contents > Index > Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.