This project uses a form to send a POST request to a servlet, and a GET request that shows the data.

You can compile this into a directory and a .war file by executing this command:

mvn package

Learn more at HappyCoding.io/tutorials/java-server/post.