The problem is that, the
Servlet cannot detect user pressing the browser's back button. When the back button is pressed, the browser just displays the old page that is in the cache and no servlet communication takes place.
You can solve this problem by maintaining some kind of record number in the request which tells you upto what record is displayed. With each request ( next/prev ) you will add or subtract 10 from the record number and store it as an attribute on the request. This way you will not lose track of what you are displaying and what
you should display when the request comes in.
Just a suggestion, there might be a better way to do this
Ajith