There are several servlet beans you can use to look up the markers on a given user profile. When you use these servlet beans, you can specify an input parameter that indicates the profile you want to work with. If you choose not to, the active user profile is used.

You can check a profile for a particular marker by specifying the marker’s key, value, or data property values:

<dsp:droplet name="/atg/markers/userprofiling/droplet/ProfileHasMarkerDroplet">
   <dsp:param name="key" value="partner"/>
   <dsp:param name="value" value="travelSiteA"/>
   <dsp:param name="data" bean="ProfileHasMarkerDroplet.ANY_VALUE"/>

   <dsp:oparam name="false">
      Check out our partner sites!
   </dsp:oparam>

</dsp:droplet>

The ProfileHasLastMarkerDroplet servlet bean locates the last marker attached to a given profile. If you’d like, you can indicate that the last marker should be returned only if it has the particular key, value, data, or other marker property value you specify. This servlet bean lets you access the marker itself. For example:

<dsp:droplet
 name="/atg/markers/userprofiling/droplet/ProfileHasLastMarkerDroplet">
   <dsp:param name="key" value="partner"/>
   <dsp:param name="value" bean="ProfileHasLastMarkerDroplet.ANY_VALUE"/>
   <dsp:param name="data" bean="ProfileHasLastMarkerDroplet.ANY_VALUE"/>

   <dsp:oparam name="true">
      <dsp:valueof paramvalue="marker.value">
      is one of our favorite affiliates. Learn why!
   </dsp:oparam>

</dsp:droplet>

Finally, the ProfileHasLastMarkerWithKey lets you find the last marker added to a profile that has a particular key. Other marker property values can act as parameters for this servlet bean as well.

<dsp:droplet
 name="/atg/markers/userprofiling/droplet/ProfileHasLastMarkerWithKeyDroplet">
   <dsp:param name="key" value="partner"/>
   <dsp:param name="value" value="travelSiteA"/>
   <dsp:param name="data" bean="ProfileHasLastMarkerWithKeyDroplet.ANY_VALUE"/>

   <dsp:oparam name="true">
      When you book your hotel room with us, you'll receive a discount on air fare
      if you book your flight with travel site A!
   </dsp:oparam>

</dsp:droplet>

For more information on the servlet beans described here, see Appendix B: ATG Servlet Beans of the ATG Page Developer's Guide.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices