am developing a JSR286 portlet with springMVC. I have a div in my portlet which will iterate a collection in my model and showing it as below
<dl>
<c:forEach var="product" items="${productList}">
<dt>
<div><img src="<%=request.getContextPath()%>/images/banner.jpg" /></div>
<div>${product.name} - ${product.price}</div>
<div>${product.serviceOne}</div>
<div>${product.servicetwo}</div>
<div>${product.serviceThree}</div>
</dt>
</c:forEach>
</dl>
I have previous and next link. on clicking the link i need to refresh the div with new content asynchronously(using ajax). Am using jQuery for scripting. i can replace the collection in the model using resource request(resource mapping url). but i dont know how to refresh the div in the ajax success so that the new collection can be viewed in the portlet.
Techies give your suggesstions..