Posts

Showing posts from December, 2019

JSP Mysql Delete

https://www.studentstutorial.com/java-project/jsp-delete-data.php

JSP Login Page

This article is a series of  JSP Tutorial .  In this article, we will build a simple Login Form using JSP , JDBC and MySQL database. In this example, we will write JDBC code separate from the JSP page. JSP page we will be using only for presentation. Let me list out the tools and technologies that I have used to develop this application. You can download the source code of this article from my GitHub repository. The link has given at end of this article. In this article, we will design below the Login Form  JSP page and store Form parameters into the MySQL database: Resource:  https://www.javaguides.net/2019/01/jsp-login-form-jdbc-mysql-example.html

Connect java to MySQL

To connect Java application with the MySQL database, we need to follow 5 following steps. In this example we are using MySql as the database. So we need to know following informations for the mysql database: Driver class: The driver class for the mysql database is com.mysql.jdbc.Driver . Connection URL: The connection URL for the mysql database is jdbc:mysql://localhost:3306/sonoo where jdbc is the API, mysql is the database, localhost is the server name on which mysql is running, we may also use IP address, 3306 is the port number and sonoo is the database name. We may use any database, in such case, we need to replace the sonoo with our database name. Username: The default username for the mysql database is root . Password: It is the password given by the user at the time of installing the mysql database. In this example, we are going to use root as the password. Resource:  https://www.javatpoint.com/example-to-connect-to-the-mysql-database