Let us make a simple application to connect and access mysql database from jsp code. This covers example jsp program to connect mysql, installing apache tomcat server, configuring mysql connector to establish jdbc driver, setting up the connection. 1st application using jsp.
To run a java server page in localhost, we need to setup a server.
Installing Latest Apache Tomcat server :
Run the following command in the terminal,
sudo apt-get install tomcat8