Home > Contents > Index > 
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index 
dir:getattrs
Retrieves the attributes for a specified entry.
Syntax
<dir:getattrs list="attribute list" name="entry" [attrs="attribute IDs"]/>Parameters
list (required)- Two-column list in which the attribute values are returned. Columns are
nameandvalue. Multi-valued attributes have as many rows in the list as values. The names returned are relative to thebaseDNproperty.
name (required)- Unique identifier for the name of the entry from which attributes are being retrieved. The value is relative to the
baseDN property.
attrs (optional)- A StringList of the attributes to retrieve. The default is to retrieve all attributes. If the attribute is specified, but the StringList is empty, no attributes are retrieved.
Error Numbers
The possible values of
errnoinclude:
Example
<dir:getattrs list="userattributes" name='<%=ics.GetVar("nametoget")%>' /> <p><b>FETCHING ATTRIBUTES FOR USER=<ics:getvar name='nametoget'/></b></p> <table border=1 cellpadding=2 cellspacing=0> <tr bgcolor=blue><td><font face=tahoma color=white size=+1><b>ATTIBUTE NAME</font></td> <td><font face=tahoma color=white size=+1><b>ATTIBUTE VALUE</font></td></tr> <ics:listloop listname="userattributes"> <tr><td><font face=tahoma size=-1><ics:listget listname="userattributes" fieldname="NAME"/></font></td> <td><font face=tahoma size=-1><ics:listget listname="userattributes" fieldname="VALUE"/></font></td></tr> </ics:listloop> </table>
Home > Contents > Index > 
Oracle JSP Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.