Class Name |
|
---|---|
Component(s) |
|
Servlet beans instantiated from the ItemLookupDroplet
class use an item’s ID to look up the item in one or more repositories and render the item on the page. The ItemLookupDroplet
class is included with the Adaptive Scenario Engine. For more information about its various input, output, and open parameters, see the ItemLookupDroplet
entry in Appendix B: ATG Servlet Beans in the ATG Page Developer's Guide.
A number of Commerce servlet beans are instantiated from the ItemLookupDroplet
class. These servlet beans are listed in the table at the top of this page.
Note:CategoryLookup
, ProductLookup
, and SKULookup
servlet beans that are instances of atg.repository.servlet.ItemLookupDroplet
are configured to work with standard catalogs. For information on the corresponding servlet beans used with custom catalogs, refer to CatalogItemLookupDroplet in this appendix. If you are an ATG Consumer Commerce user and you want to migrate to custom catalogs, refer to Converting from Standard to Custom Catalogs section in the ATG Commerce Programming Guide for more information.
Example
The following code example demonstrates how to use the GiftlistLookupDroplet
to look up a gift list in the repository and check that its owner ID equals the ID of the current profile before displaying.
<dsp:droplet name="/atg/commerce/gifts/GiftlistLookupDroplet"> <dsp:param param="giftlistId" name="id"/> <dsp:oparam name="output"> <dsp:droplet name="IsEmpty"> <dsp:param param="element" name="value"/> <dsp:oparam name="false"> <dsp:setvalue paramvalue="element" param="giftlist"/> <dsp:droplet name="/atg/dynamo/droplet/Switch"> <dsp:param bean="Profile.id" name="value"/> <dsp:getvalueof id="nameval2" param="giftlist.owner.id" idtype="java.lang.String"> <dsp:oparam name="<%=nameval2%>"> </dsp:oparam> </dsp:getvalueof> </dsp:droplet> </dsp:oparam> </dsp:droplet> </dsp:oparam> </dsp:droplet>