Let's say you're commenting on a video. If you do not want the video to stop when you submit a comment, you should use an Ajax. The example below does not use the database, so you can run it without any extra work.
Go to root directory and run mvn jetty:run and visit http://localhost:8080.