The <pz:div> tag allows a piece of in-line content to be shown if a user belongs to the specific User Segment defined in the User Segment designer. This tag has a begin tag, a body, and an end tag. The tag returns a list of User Segment objects to which the user belongs.
<tagName attribute="value"
>
</tagName>
rule
Required (String) - The name of the User Segment defined in the User Segment designer.
id
Optional (String) - A collection that contains the User Segment objects that apply to the user.
This example displays an HTML-formatted paragraph to users belonging to the PremierCustomer segment.
<profile:getProfile profileKey="bob" profileId="myProfile" scope="session"/> <pz:div id=”classifications” rule="PremierCustomer"> <% //if the user is classified as a Premier Customer, a list with one entry should be returned// java.util.Iterator iterator=classifications.iterator(); while (iterator.hasNext()) { com.bea.p13n.user. Classification classification=(Classification) iterator.next(); out.println (classification.getName()); } %> <p>Please check out our new Premier Customer bonus program.<p> </pz:div>