Display results with next and previous buttons

I have an arraylist which contains data fetched from database. I want to display all these results in a jsp in a shot of 10 results at a time. The jsp contains two buttons namely, next and previous. Can any one help me out with a code or some tips. It is quite urgent for me please.......

Thanks,

Smitha

[329 byte] By [smitha_rai] at [2007-9-26 2:22:12]
# 1

U have to pass a parameter to the same jsp code which displays the initial result, for eg. page no. And with this parameter in ur for loop, u can fetch the next and previous results...

Right now i dont have the code with me...

but the concept is somewhat like what i have written.

RahulGr at 2007-6-29 9:28:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi

iam having two buttons in my jsp page.One is 'next' and another 'previous'.I hava a text box in my jsp page.If i press 'next', then the data from database must me incremented and should show next recrod in the text box, and if i press 'previous' data should be decremented and previous record must be displayed on the same jsp page text box.PLS HELP ME.IAM REALLY IN NEED OF THT CODE VERY URGENTLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

jsp_beginner at 2007-6-29 9:28:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
See for example Page taglib in Coldtags suite: http://www.servletsuite.com/jsp.htm
dnamiot at 2007-6-29 9:28:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...