Class Name




The CouponDroplet servlet bean takes either a promotion object or promotion ID and generates a coupon for it in the Claimable repository.

Input Parameters

promoId (Either this or promotion must be used)
The ID of the promotion used to create the coupon.

promotion (Either this or promoId must be used)
The promotion object used to create the coupon.

Output Parameters

The coupon object. The claim code for this coupon can be obtained by using Note that claim codes for coupons are case-sensitive. For example, COUP100 and coup100 are two different claim codes.

Open Parameters

The open parameter rendered on successful creation of a coupon object.

The open parameter rendered if an error occurs during creation of a coupon.


The following example shows the JSP code for the CouponDroplet:

<dsp:importbean bean="/atg/commerce/promotion/CouponDroplet"/>
<h2>here is a coupon that was created: </h2>
<dsp:droplet name="CouponDroplet">
<dsp:param value="promo60001" name="promoId"/>
<dsp:oparam name="output">
   <dsp:valueof param="">no value</dsp:valueof>
<dsp:oparam name="error">
loading table of contents...