Jsp implements the previous page flip function (sample code) and previous page sample code

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.