Eclipse makes a simple landing interface with a JDBC-connected database

Source: Internet
Author: User
Tags tomcat server

First, preface:

Do Web site development, requires a variety of collocation, front-desk technology can use PHP, ASP, JSP, ASP, CGI and any one;

The basic language needs to use the most is Html/css, JS, JAVA, XML these, HTML/CSS+JS can achieve the rendering of the interface, while JAVA can do background data processing, XML is also used as a medium for transmitting data ( think: XML is so much more powerful than HTML, why doesn't it replace HTML? );

This article uses a simple JSP file to implement the login interface, so only the following techniques are used:

    1. Html/css, simple demo will not do CSS style, can learn by themselves, improve the source code
    2. Javascript
    3. MySQL use (with visual windows)
    4. JDBC Connection Database
    5. (Go to w3c/Beginner's tutorial to learn it)

A variety of HTML tags are used in the project, such as <input>, <form>, <table>, etc., and the project files are used. JSP file, if you have encountered the label attributes do not understand the situation please Baidu (do not need to memorize, with more natural can remember);

The built-in objects used inside and the JDBC module are very little known to me, such as useful (e.g. response) and the wrong explanation.

The tools used in this project are as follows:

    1. Myeclipse/eclipse (Java EE version)
    2. Mysql5.7+sqlyog
    3. MySQL JDBC driver package (click to download)
    4. Chrome/ie (F12 key)
    5. Tomcat9.0
    6. jdk1.8

You can also try other databases and tools Oh! Enter the project below

Second, configure the Tomcat server

You need to configure the JDK environment variables and install tomcat, you may need to develop a JRE directory, which is usually detected automatically, go to not as a Tomcat installation directory to change, leaving the default next is to choose the installation directory, The Tomcat directory after installation cannot be arbitrarily moved or renamed, otherwise it will severely affect the Tomcat service failed to open.

To open Eclipse, configure the server item according to the link below, and note that when selecting the Tomcat version, please adjust it to your own version. I always see people pretending to be Tomcat9.0, but when the lower version is used, the language is silent, sometimes the eclipse version may be different from the interface, please identify yourself.

Baidu Experience: "View"

Iii. creation of the project Firstproject

Open Eclipse,

"Not to be Continued"

Eclipse makes a simple landing interface with a JDBC-connected 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.