Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

add

Description

Adds an address book entry. If an error occurs during processing, the tag body will be evaluated and the remainder of the page will be skipped.

Tag Body

JSP

Tag Parent

n/a

Restrictions

n/a

Attributes

This tag has a single attribute for which the value of the Required section is Yes:

name

Name of a contact or group bean which has been previously stored on the page context.

Properties

n/a

Example(s)
<%@ page errorPage="/jsp/errorpage.jsp" %>
<%@ taglib uri="/taglibs/ips_taglib_ab.jar" prefix="ab" %>
<ab:context/>
<ab:entry id="addentry">
	<ab:set property="fn" value="$(fn)"/><br>
	<ab:set property="ln" value="$(ln)"/><br>
	<ab:set property="em" value="$(em)"/><br>
</ab:entry>
<ab:add name="addentry">
		Problem adding Entry
</ab:add>
		Entry added successfully
<ab:fetch>
		Error in Looking up address book.
</ab:fetch>
		Number of Address Book entries:
<ab:context>
	<ab:get property="numEntries"/>
</ab:context>
<ab:entries>
	<ab:entry>
		Entry Id: <ab:get property="entryid"/>
		First Name: <ab:get property="fn"/>
		Last Name: <ab:get property="ln"/>
		Email: <ab:get property="em"/>
	</ab:entry>
</ab:entries>