Let's say you are commenting on a video. If you do not want the video to stop when you submit a comment, you need Ajax programing. The example does not use the database.
Go to the root directory and run mvn jetty:run and visit http://localhost:8080.