Reputation: 988
i have created a model class to connect with database with a function that retrives a table data.now this function should return whole resultset back to a Controller action page. further controller action should send the data to jsp page for client viewing.
or simply how to hold Resultset data from query like..select * from table
Upvotes: 2
Views: 2071
Reputation: 2223
In Model class you can convert your ResultSet into List which subsequently returned to view.The only code you need to write is converting ResultSet into List of Object
Upvotes: 1