Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi everyone,
I'm new to jsp and I have a basic question about RecordSet.
I want to build a map out of my ResultSet rs.
What I have now is :String paramValue="";
paramValue = rs.getString("T2");
map.put("T2", paramValue);
paramValue = rs.getString("T3");
map.put("T3", paramValue);
paramValue = rs.getString("C1");
map.put("C1", paramValue);The problem with the above is that there are many fields and I would prefer not to access them one at a time, as above.
So, can anyone tell me if there is a way I could maybe create 2 arrays out of ResultSet rs (one with fields names, one with fields values) - the actual syntax of it? And then simply have a loop for traverse the two arrays and populating my map with their values.
Thanks in advance.

![]() |
Online payments on my pag...
|
asp shutting down?
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |