Explain how you can deploy a web application using WAR files

JSPs, servlets, and their supporting files are placed in the proper subdirectories under the web apps directory in Tomcat.  You can make all the files under the web apps directory into one compressed file, which ends with .war file extension.  You can execute a web application by placing a WAR file in the webapps directory.  When a web server starts executing, it pulls out the WAR file’s contents into the appropriate webapps sub-directories.