• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can any body tell how to add resultset in array list

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai i am using servlet and mysql can any body tell how to store resultset in array list .i have lot of records .
i have three field sno name address how can i iterate the resultset from arraylist in table format





thanks in advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34208
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create an object representing a row - those three fields. Then as you loop through the result set, create this object and add it to the list.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic