开发者

how to display a table retrieved from database to a jsp page via a controller page in Struts framework

开发者 https://www.devze.com 2023-01-03 11:59 出处:网络
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开发者_如何学Go.

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开发者_如何学Go. 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消