Home > Contents > 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
name
andvalue
. Multi-valued attributes have as many rows in the list as values. The names returned are relative to thebaseDN
property.
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
errno
include:
errno Description -15004 Implementation doesn't support this operation -15005 Unexpected naming exceptions from JNDI provider. -15006 A required property missing, or class name specified for factory classes is in error. -15007 Unexpected schema violation errors from JNDI provider. -15008 General error in the syntax of an IName. -15009 Unexpected invalid attribute exceptions from JNDI provider -15010 Unexpected invalid attribute id exceptions from JNDI provider. -15011 Unexpected invalid attribute value exceptions from JNDI provider. -15012 User does not have permission to perform the operation. -15014 Unexpected JNDI read error. -15015 Unexpected JNDI write error. -15016 JNDI attribute already in use. -15023 Unexpected JNDI connection errors. -15024 Required attribute missing. -15025 Unknown error. -15036 Missing or invalid child argument tags for tag.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, 2018, Oracle and/or its affiliates. All rights reserved.