This tag denotes a reference to the current contact bean within an enclosing collection tag, for example, <ab:contacts>. The body of this tag may contain get or set tags that will generate output derived from the contents of this bean tag.
JSP
<abPrefix:contacts>
Only one of id, name, or entryid should be used at a time. If no attributes are specified, the current entry in the parent collection is used.
This tag has the following attributes, which are not required:
Specifies the bean id of the bean to create.
Specifies the bean id of the bean to use.
Specifies the address book entry id to use.
This tag provides the following bean properties, which have the Type, String and Access, Get/Set:
First name.
last name.
Email address.
Business phone.
Home phone.
Fax phone.
Mobile phone.
Pager phone.
Id of address book entry.
Type of entry bean. May be contact or group.
<%-- Example 1 Current contact in the contacts collection --%> <%@ page errorPage="/jsp/errorpage.jsp" %> <%@ taglib uri="/taglibs/ips_taglib_ab.jar" prefix="ab" %> <ab:context/> <ab:fetch ln="$(ln)" fn="$(fn)" bp="$(bp)" em="$(em)" hp="$( hp)" fp="$(fp)" mp="$(mp)" pp="$(pp)" sb="ln" sd="up"> Error in Looking up address book. </ab:fetch> Number of Address Book entries: <ab:context> <ab:get property="numEntries"/> </ab:context> <ab:contacts iterate="true"> <ab:contact> Entry Id: <ab:get property="entryid"/> First Name: <ab:get property="fn"/> Last Name: <ab:get property="ln"/> Email: <ab:get property="em"/> </ab:contact> </ab:contacts> <%-- Example 2 Retrieve a contact by entryid --%> <ab:contact entryid="$(entryid)"> First Name: <ab:get property="fn"/> Last Name: <ab:get property="ln"/> Email: <ab:get property="em"/> </ab:contact>