The /atg/search/droplet/GetClickThroughId servlet bean is typically used in a loop that renders a list of search results. For each result, it adds the item to a cache, and generates a click-through ID to be included in the URL for viewing that item. The click-through ID consists of a query identifier and a document identifier, separated by a delimiter.

You use this servlet bean in pages that render a listing of search results. For example, the following JSP code creates a hyperlink to a product page and appends the searchClickId query parameter to the URL:

<dsp:droplet name="/atg/search/droplet/GetClickThroughId">
  <dsp:param name="result" value="${searchResult}" />
   <dsp:oparam name="output">
     <dsp:a href="/myapp/en/product.jsp">
       <dsp:param name="searchClickId" param="${searchClickId}"

The resulting URL looks something like this:,25

For more information about GetClickThroughId, see Appendix A, Commerce Search Servlet Beans.

loading table of contents...