How to include a page (JSP) in another page in ATG

In the main page:

<dsp:include page="/muthu/muthu.jsp">
    <dsp:param name="product" value="${product}"/>
</dsp:include>

Here product details will be send through param product.
And in muthu.jsp

<dsp:getvalueof var="product" param="product" />
<c:set var="productid" value="${product.id }"/>
<c:set var="productName" value="${product.displayName}"/> <br>

You are selected: ${productid} - Name: ${productName}
<c:forEach var="category" items="${product.parentCategories}">
<br> -> ${category.id}
</c:forEach>

Popular posts from this blog

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

Install Android SDK in centOs

Installing arules package (Association Rules) in R