PDA

View Full Version : Grid + Servlet(J2EE)



dasara
7 Jan 2007, 9:15 PM
Hi All,

I'm trying to dispaly the records in the grid.
I'm creating a DataBase connection using JDBC and I'm fetching the data from the data base. Now the data is in Resultset.

How can i able to display the data which is stored in the Result set. And i want page navigation in the Grid.

Is there any way to display the data in the Grid. Sample code is always welcome.

Thanks in advance,

I

JeffHowden
7 Jan 2007, 9:44 PM
You've got several options. First, you can convert your resultset into JSON and hand that directly in the config to the grid. Or, the better solution is to setup your server-side bit to look for POSTs via AJAX and respond with the relevant portions of the resultset based on the requested page.

http://www.yui-ext.com/deploy/yui-ext/docs/#/deploy/yui-ext/docs/output/YAHOO.ext.grid.LoadableDataModel.html