The /atg/endeca/clickthrough/droplet/GetSearchClickThroughId
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 the search ID and the record ID, separated by a delimiter.
Input Parameter
record
The record to generate the click-through ID for.
Output Parameter
searchClickId
The click-though ID for retrieving the record from the cache.
Open Parameter
output
The open parameter for rendering the click-though ID.
Example
You can use this servlet bean in pages that render a list 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:
<c:forEach var="record" items="${contentItem.records}" > <dsp:droplet name="/atg/endeca/clickthrough/droplet/GetSearchClickThroughId"> <dsp:param name="record" value="${searchResult}"/> <dsp:oparam name="output"> <dsp:a href="/mystore/browse/productDetail.jsp"> <dsp:param name="searchClickId" param="${searchClickId}" </dsp:a> </dsp:oparam> </dsp:droplet> </c:foreach>