hi, i have a problem with pagination while refresh.
Assume i have 100 records in database.Each time i will display 20 records.When i click next button i will display next 20 records. If i am in page 2 and i refresh the page,it is going to page 3. But it should stick to page 2 only. This is because refresh is nothing but submitting request. Here i am setting a command variable as "next" and passing page no. So when i refresh, as the command is next it is submitting the page.
Well,remember that,when you refresh the page,the same request is submitted again.
Regards Baseet Ahmed
Request to ALL: "Do worship The Creator,not the creation."
Joined: Jul 11, 2006
Hi, I am already passing boolean variable to my servlet where i am incrementing my page no. in the jsp i am taking a hidden variable and passing this variable to my servlet when i click next button. Now when i refresh i am checking for this variable.But the variable also becomes true for refresh.