Use JSP + ajax to implement the instance code of the classification query function and ajax classification Query

Source: Internet
Author: User

Use JSP + ajax to implement the instance code of the classification query function and ajax classification Query

This article mainly introduces the instance code that uses JSP + ajax to implement the classification query function. It is for your reference as follows:

This is to record and share some problems and solutions encountered in the Curriculum Design of Information Management System for college graduates in the first semester.

Subject requirements: provide the enterprise recruitment information (this year or over years) query function;

First, create a jsp file to display the database information, and add the input condition text box and query button above. In this jsp file, a js function is required to complete the query function.

<% @ Page language = "java" pageEncoding = "UTF-8" %> <% @ page import = "java. util. * "%> <% @ page import =" java. SQL. * "%> <% @ page import =" TestSQL. selectDB "%> 

The running interface is as follows:

Then process the request on another interface and use ajax technology to implement synchronous refresh. The Code is as follows:

<% @ Page language = "java" pageEncoding = "UTF-8" %> <% @ page import = "java. util. * "%> <% @ page import =" java. SQL. * "%> <% @ page import =" TestSQL. selectDB "%> 

Effect:

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.