Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what's war files  RSS feed

 
Shaji Ravindran
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
what's war files and where is it used actually
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WAR stands for Web Application Resource as I recall. In Sun's vision of web applications, an entire web application can be packaged in a WAR file. You place the war file in the webapps directory of a servlet engine such as Tomcat and restart the engine. Automatically the engine discovers that there is a war file which does not have a matching directory structure under webapps and unpacks the whole thing. Bang! you are now running the new application. It actually works.
Bill
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
WAR stands for Web Application Resource as I recall.

Close -- "Web Application Archive"
-- The Servlet spec gives it this definition:
A single file that contains all of the components of a web application. This archive file is created by using standard JAR tools which allow any or all of the web components to be signed.
A Web Application itself is:
-- A collection of servlets, JSP pages, HTML documents and other web resources which might include images, files, compressed archives, and other data. A web application may be packaged into an archive or exist in an open directory structure.
Check out this tutorial from the HP Application Server documentation for more info --> Chapter 4, Developing Web Components
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!