PDA

View Full Version : How to retrive data from database in phased manner using jsp


tapasbehera
Jan 17, 2009, 09:58 PM
I want to show data(that are retrived from database) in phased maner in the web browser.I want to say that I have supoose 12 records present in database.first only 4 records are to be shown,then when pressing a "next" button next 4 records to be shown in web browser and so on.

jstrike
Feb 1, 2009, 01:38 PM
Read the data from the database into beans, place the beans in the session. When you change pages read the beans out of the session and display the ones you need.