If the documents being searched represent repository items (such as products or SKUs in a product catalog), each result returned will contain the URL for the corresponding item. You can use the URL to display the repository item. For example:
<dsp:getvalueof bean="QueryFormHandler.searchResponse" var="queryResponse" scope="request"/> <c:forEach items="${queryResponse.results}" var="result"> <c:out value="${result.document.url}"/> <dsp:droplet name="/atg/targeting/RepositoryLookup"> <dsp:param name="url" param="${result.document.url}"/> <dsp:oparam name="output"> <dsp:valueof param="element.displayName"/> </dsp:oparam> </dsp:droplet> </c:forEach>
Note, however, these URLs will not be recognized unless the repository is registered. To register a repository, add it to the list of repositories in the initialRepositories
property of the /atg/registry/ContentRepositories
component.