Simple JSP access to the database

Source: Internet
Author: User

  What is JDBC

In the Java technology family, the technology that accesses the database is called JDBC, which provides a series of APIs that allow code written in the Java language to connect to the database, add, delete, modify, and query the data in the database.

  How JDBC connects to a database

1, through the database manufacturer driver connection;

2. Connect via JDBC-ODBC Bridge (only under Windows System).

  Database connection using Vendor driver

1. Determine the driver class used, import its download into the project Lib file, and build the driver into the project;

2, determine the URL address of the connection;

  A database processing interface for a registration page

1. Create a registration page

2. Connect to the database

Simple JSP access to the database

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.