I Have JSP code like this. I fetch the Image and data of the product using `forach in one page:
<c:forEach var="product" items="${products}" >
<div class="col-md-3">
<div class="panel-body">
<div>
<a href="description.html">
<div class="thumbnail">
<img src="data:image/jpeg;base64,${product.base64EncodedImage}" alt="image">
<div class="caption" align="center">
<p>
<h4>${product.name}</h4>
<h5>cost:Rs ${product.price}/-</h5>
</p>
</div>
</div>
</a>
</div>
</div>
</div>
Image of fetched data
Now I have to get the data and image OF PARTICULAR PRODUCT when I click on a tumbnail. I have to get the data in the servlet class and have to print the output in another page:
This is what I expect to see when I click on a thumbnail: