Demo on YouTube https://youtu.be/SouTCWZZehs Environment Please add the servlet-api.jar into the Project>Properties>Java Build Path>Libraries from the tomcat install folder.