a REST web service to manage a list of people
CREATE DATABASE person ; -- create new database
use person; -- use database
CREATE TABLE p ( -- create table p
id INT (6 ) UNSIGNED AUTO_INCREMENT PRIMARY KEY ,
nom VARCHAR (30 ) NOT NULL ,
prenom VARCHAR (30 ) NOT NULL ,
age INT (6 ),
reg_date TIMESTAMP
)
2- copy MyProjet to tomcat :
cp -r MyProjet < tomcat Path> /webapps/
3- copy MyProjet to tomcat :
cp -r MyProjet < tomcat Path> /webapps/
cd WEB-INF/ # From MyProjet repertoire
javac -classpath " lib/*" src/com/person/Gestion.java src/com/person/Person.java -d classes/
cd bin/ # From tomcat repertoire
./shutdown.sh # stop tomcat server
./startup.sh # start tomcat server
6- use WebPages to manage a list of people :
WebPages
|-------index.html
|-------edit.html
|-------add.html
|-------del.html