Hi All,
here i am facing the problem about how to use iterator tag i.e<logic:iterator/> in
JSP's inorder to iterate Arraylist object containing HashMap elements!
i will provide part of my Action class code where i used arraylist and hashmap:
ArrayList arl=new ArrayList();
while(rs1.next()){
System.out.println("enter the loop");
HashMap map = new HashMap();
String name=rs1.getString("name");
String email=rs1.getString("email");
String phno=rs1.getString("phno");
map.put("NAME" , name);
map.put("EMAIL" , email);
map.put("PHNO", phno);
arl .add(map);
System.out.println(arl);
}
request.setAttribute("arll",arl);