Step 5: Create a Web Archive File
As a last step, create a Web Archive file (WAR). The WAR file is similar to a Windows CAB fileit packages your application. At a command prompt, switch to the directory you created under webapps for your application, for example c:\Tomcat\webapps\foo, and then issue the following command:
jar cvf foo.war
Copy the resulting foo.war file to the webapps directory of your Tomcat installation.
You've completed the steps to install Tomcat and configure a JSP application. Spend some time familiarizing yourself with Tomcat's directory structure and configuration files, so that you can later focus on your application-specific needs. You can also learn a great deal by studying the sample applications that ship with Tomcat.