The first two articles describe how to configure MyEclipse and Tomcat to develop JSP Web sites, how to configure the servlet simple implementation form submission, this article mainly describes the configuration of MySQL implementation database connection MyEclipse, and finally the query table data displayed in the JSP Web page. The main picture is mainly described in the article, please Haihan ~
Java+myeclipse+tomcat (i) Introduction to the configuration process and JSP Web site development
Java+myeclipse+tomcat (ii) Configuring the servlet and simply implementing the form submission
Code and MySQL:
To unify and simplify the Java language operations of various databases, Sun provides the JDBC framework for all Java applications to connect to the database in a unified manner. From applications such as Enterprise Oracle, DB2, SQL Server, to mid-size application MySQL, Oracle XE, and finally, access, FoxPro, and more for small personal apps. JDBC (Java database Connectivity,java connection) can be connected to any process database by using the database JDBC driver class provided by the database manufacturer.
Using the example in the previous article servlet, using JDBC to query data in a JSP, the core operations are as follows. Refer to the Hongten blog at the following address:
Java+myeclipse+tomcat (c) Configure MySQL and query data to be displayed in the JSP Web page