Resultset To List

Posted by Gnaniyar Zubair on Stack Overflow See other posts from Stack Overflow or by Gnaniyar Zubair
Published on 2009-12-27T19:47:54Z Indexed on 2010/04/19 14:23 UTC
Read the original article Hit count: 154

Filed under:
|
|

I want to convert my Resultset to List in my JSP page. and want to display all the values. This is my query:

SELECT userId, userName 
  FROM user;

I have executed that using preparedstatement and got the Resultset. But how to convert it as a List and want to display the result like this:

userID  userName
------------------
1001    user-X 
1006    user-Y  
1007    user-Z

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp