I can print value of a key of HashMap as below
<%
HashMap<String,String> students = new HashMap<String,String>();
students.put("1","Amit");
students.put("2","Amit");
students.put("3","Anil");
students.put("4","Amit");
session.setAttribute( "students", students );
%>
<bean:write name="students" property="1" />
<bean:write name="students" property="3" />
How can i print key and its value iteratively?
Well!! I dint get this answer anywhere after googling. But somehow, hitting the ground, I done it without using EL or scriptlets.