Hi all
I am new to
struts I am getting problem while displaying the values in
JSP page while using HashMap and ArrayList
/*This is the code for Array List*/
ArrayList al = new ArrayList();
while(rs.next()){
al.add(rs.getString(1));
}
I want to display the contents of al object in JSP Page using Stuts <logic:iterate> tag . Thing is this al object is having more that one value
so with out struts we can use for loops and Enumerations to display the value. But pls help me how to display this using struts logic:iterate tag.
Pls give me sample code.
/*This is my hash map code*/
HashMap hm = new HashMap();
while(rs.next()){
hm.put("name",rs.getString(1));
hm.put("age",rs.getString(2));
hm.put("sex",rs.getString(3));
}
The above is my HashMap code i have diplay this value in JSP using logic:iterate tag.
Pls Provide me code for this.
regards
Gopinath