Class Name |
|
---|---|
Component(s) |
|
CategoryBrowsed
and ProductBrowsed
are two servlet beans instantiated from class atg.userprofiling.ViewItemEventSender
. These servlet beans send JMS messages to the messaging system when a customer views items in the catalog.
Input Parameters
eventobject
The repository item the customer has viewed, which will be sent within the event message. This is either a product or category repository item, depending on which servlet bean you use (CategoryBrowsed
or ProductBrowsed
).
Output Parameters
None.
Open Parameters
error
The open parameter rendered if an error occurs while sending the message to the messaging system.
Example
The following example shows a portion of a JSP that uses the ProductBrowsed
servlet bean to send a message when a product is viewed. The product’s repository ID is passed to this page (via the ItemId
parameter) from the page that links to it.
<dsp:droplet name="/atg/commerce/catalog/ProductLookup"> <dsp:param param="ItemId" name="id"/> <dsp:oparam name="output"> <dsp:droplet name="/atg/commerce/catalog/ProductBrowsed"> <dsp:param param="element" name="eventobject"/> </dsp:droplet> </dsp:oparam> </dsp:droplet>