TagLib: AddressBook

set

Description

The set tag updates the specified property. This tag operates exactly like the <util:set> tag and is imported into the ab taglib for convenience. See the util:set tag description for usage details.

Tag Body

util:set

Restrictions

util:set

Attributes

util:set

Properties

util:set

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 saving Entry
        </ab:add>
        Entry saved 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>