Hi

I have to display results in  jsp that is retrieves from the database.
After I retrieve the results, I place the it in an arraylist.
But I am a bit confused on how to retrieve an entire row, because I
add each field to the arraylist.

Eg. String name = rs.getString(1); //value = myname
Arraylist.add(name);

String surname = rs.getString(2); //value=mysurname
Arraylist.add(surname);

When I retrieve the results they are displayed:

Myname
Myname
Anothername
Anothersurname
AThirdName
AThirdSurname


I am using <c:foreach /> in the jsp page.
Please help!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to