B
Bogi
Hi all!
I've a HashMap construct like this:
HashMap all = new HashMap();
int index=0;
....
while(rs.next()){
ResultSetMetaData rsmd = rs.getMetaData();
HashMap h = new HashMap();
for(int i=1;i<=rsmd.getColumnCount();i++){
String col=rsmd.getColumnName(i);
h.put(col, rs.getString(col));
}
all.put(String.valueOf(index), h);
index++;
}
....
I want to know how to iterate over the rows, so that I can retrieve
the values like
....
<c:forEach var="loop" items="${hashmap}" varStatus="status">
<cut value="${loop.columnName1}"/>
<cut value="${loop.columnName2}"/>
</c:forEach>
....
I trying for hours.
I am really stuck here.
Thank you in advance.
Marc van den Bogaard
(e-mail address removed)
I've a HashMap construct like this:
HashMap all = new HashMap();
int index=0;
....
while(rs.next()){
ResultSetMetaData rsmd = rs.getMetaData();
HashMap h = new HashMap();
for(int i=1;i<=rsmd.getColumnCount();i++){
String col=rsmd.getColumnName(i);
h.put(col, rs.getString(col));
}
all.put(String.valueOf(index), h);
index++;
}
....
I want to know how to iterate over the rows, so that I can retrieve
the values like
....
<c:forEach var="loop" items="${hashmap}" varStatus="status">
<cut value="${loop.columnName1}"/>
<cut value="${loop.columnName2}"/>
</c:forEach>
....
I trying for hours.
I am really stuck here.
Thank you in advance.
Marc van den Bogaard
(e-mail address removed)