File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

content in war file

 
Arun Prasath
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what must be present in the content of WAR file and what are optional?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the sort of thing that is best looked up in the Spec.

A link to the Servlet Specification can be found in the JSP FAQ.
 
Janakiram Gattupalli
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arun,
we can deploy our web-application in two ways.
1.exploded directory structure
2.war(web archieve) file

WARFILE is better than expolded directory structure. we can easily export and import WARFILE .
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
war file when put in the server...once it gets expanded will be same as the

option 1 (exploded directory structure) in Janakiram's answer...

the contents...same as what you would put in the above option.

Extra stuff would be the meta-inf directory and manifest.mf file...

Contents would be html,jsps,images,css,jars,classes,tlds,tags,web.xml,config files,etc..(what a normal web application has)
 
Amar Deep Singh Chaudhary
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Arun !
In the war file we placed the all contents which we want to access through the browser including html files,jsp files images classes and packege and the web.xml file in the deployment directory structure.





AMAR DEEP CHAUDHARY
"a mind thought never dies."
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic