Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

modify

Description

Modifies 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

The use of this tag should precede any use of a "fetch" or "collection" tag.

Attributes

This tag has the following attributes for which the Required value is “Yes”:

name

Name of the entry bean, stored on the page context, that contains the modifications.

entryid

The id of an entry bean (within the entries collection) identifying which address book entry is to be modified.

Properties

n/a

Example(s)
<%@ page errorPage="/jsp/errorpage.jsp" %>

<%@ taglib uri="/taglibs/ips_taglib_ab.jar" prefix="ab" %>

<ab:context/>

<ab:entry id="modentry">
	<ab:set property="fn" value="$(fn)"/><br>
	<ab:set property="em" value="$(em)"/><br>
	<ab:set property="ln" value="$(ln)"/><br>
</ab:entry>

<ab:modify name="modentry" entryid="$(entryid)">
		Problem modifying Entry
</ab:modify>

Entry modified 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>