struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burr Sutter <>
Subject Re: WAR file???
Date Mon, 12 Nov 2001 18:29:09 GMT

If I have a directory structure that looks like:
I will use something like:
jar -cvf my.war -C  mywar .
executed from the MyApps directory. Note the space between "mywar" and "."
The jar.exe ships with the JDK.  The key thing is making sure the paths in the resulting war
file are accurate. For instance, the file called web.xml must be in WEB-INF.  And the struts.jar
goes in WEB-INF\lib.
If you are on windows you can use Winzip to view the file and check your paths.

The benefit of the WAR file is that it is a single file that can be deployed on any J2EE compliant
application server/servlet engine. 
The standard for the web application directory structure is documented in the Servlet specification
from Sun. 
Sent via

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message