Skip to main content

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

#ThankYouCitrisys

MAY 5, 2015 an unforgettable day in my life. Why this award is so special to me? Because, after 8 years (After completion of Engineering), I landed on a good place where they identified me and involved me in the good projects with suitable PMOs. With all their support in Citrisys, I did small things with my involvement. For that, Citrisys, awarded me this "Award of Excellence". This award not shows me the best performance, but, it shows me to work more and more. Thank you Mr.ARA (CEO, Citrisys Solutions) for this award. #ThankYouCitrisys

Citrisys Poster Competition work 02