Connection with MySQL Database using JSP

The below code explains how to make connection with MySQL database using JSP.
This is not the production code, its just for practice. You can modify according to your need.

—welcome_to_database_query.jsp—

OUTPUT: