JSP (Java Servlet Pages) Demo
sudo apt install git
cd ~/Desktop
Install MySQL, add DB with appropriate credentials
sudo apt install mysql-server
mysql> mysql -u root -p
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'l84w0rk'
mysql> CREATE DATABASE helloDB;
mysql> CREATE TABLE employees (first_name VARCHAR(255), last_name VARCHAR(255))
mysql> EXIT
Download Eclipe IDE for 'Web' https://www.eclipse.org/downloads/packages/
Open 'HelloWorld' Project in Eclipse IDE
./eclipse
Update DBConnection.java with correct DB credentials
Ex.: "jdbc:mysql://localhost:3306/helloDB", "root", "l84w0rk"
In Eclipse IDE, run the Project 'as a Server' (Add Tomcat Server if prompted)
Try the app in a Browser !
http://localhost:8080/HelloWorld
TODOs:
Enjoy !