Section E.23. Creating a .war File

   

E.23 Creating a .war File

Web application archives ( .war s) are similar to .jar s, but they contain Web applications that might include classes, beans, HTML, JSP, images, and applets.

If you have manually created the proper directory structure for a Web application, follow these steps to create your .war for deployment using the jar tool distributed with the J2SE:

  1. Navigate to the top-level directory of the application

  2. Type at the command line: jar cvf myWebApp.war

Note that you can also create a .war file by calling the .war task of the ant build tool (available from www.apache.org). A third way to create a .war file is to use the packager tool distributed with the J2EE.


   
Top


Java for ColdFusion Developers
Java for ColdFusion Developers
ISBN: 0130461806
EAN: 2147483647
Year: 2005
Pages: 206
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net