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; >
SELECT userId, userName FROM user;
You could always use Commons DbUtils and the MapListHandler. From the doc:
ResultSetHandler implementation that converts a ResultSet into a List of Maps
so it'll take a lot of boilerplate code out of your hands.