I am calling a Java method from a JSP page like below:
<%
HashMap<String, String> cancelList=new HashMap<String, String>();
cancelList=ProductGetCancellationList.getCancellationList((String)session.getAttribute("PRODUCTID"));
%>
I am getting the key and value pair fine.
Now i want to use the key,value pair from "cancelList" hashmap to populate a dropdown list in the same JSP page. Here's what i am currently trying to do but not getting intended result.
<c:forEach var="cancel" items="${cancelList}">
<option value=${cancel.key}>${cancel.value}</option>
</c:forEach>
Kindly help me here...