Jsp implements the previous page flip function (sample code) and previous page sample code
I have been busy with my final exams and internships some time ago. I haven't written a blog for a long time.
During this time, I made a small project, including two knowledge points for turning pages and the rich text editor Ueditor. Ueditor is not playing very deep yet, so I plan to write a blog post later.
To implement the page flip function, you only need to set a pageIndex, and then load data through pageIndex each time the page is loaded.
You can set a hidden input box to pass pageIndex to the next page.
When we click the previous page, use the js method to change the value of pageIndex, and then submit the form.
Let's not talk much about it. Read the code and write it clearly in the code.
This is the code of index. jsp.
Index. jsp
<% @ Page import = "Bean. DBBean "%> <% @ page import =" Entity. record "%> <% @ page import =" java. util. list "%> <% @ page language =" java "contentType =" text/html; charset = UTF-8 "pageEncoding =" UTF-8 "%> <! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN "" http://www.w3.org/TR/html4/loose.dtd "> <Html>
PageIndex = 1
PageIndex = 2
The above jsp implementation of the next page flip function (Sample Code) on the previous page is all the content shared by the editor. I hope to give you a reference, and I hope you can also support the help house.