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
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.
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!