Hi, I need to display records from the database in a shot of 20. The database may contain as many records. Whenever, I move next and previous screens (using jsp page), I need to query the database using the start and finish indices so that always the recent data is always displayed. In other words, I need to query the database every time. Can any one help me with the code to retreive the result set having ONLY 20 records or less.? regards, Smitha
"smitha", Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements. You can change your name here. Thanks. Sean
Hi Smitha, This will be database specific.If you are using MySql then you have to retrive all data in an array or vector and then display in a slots. I think in case of Oracle the specific query is available to display the rows in a slot.