Assalam Alekum Siraj Baig,
As you said,you want to show your next page while refreshing your page.
For that you can tell your
servlet that the refresh button is pressed(through some javascript code etc) and your servlet will decide what to do in that case(i.e show the next page).
As you are setting command "next" and page no, you can increase the page no by 1 when refresh button is pressed in your servlet.
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."