• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR file doubt

 
Poonam Agarwal
Ranch Hand
Posts: 324
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ranchers,

Which of the following statements is true?
Choose at least one answer.

A. A war file is an xml configuration file
B. a war file must contain a directory called META-INF
C. a war file can contain servlets but not jsp pages
D. a war file can contain servlets, jsp and other resources
E. The top directory of a war file is the document root of the application

I guess top directory of a war file is META-INF directory itself. then this directory contain the exact web-application structure.

Agree or Disagree??



 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Poonam Agarwal wrote:I guess top directory of a war file is META-INF directory itself. then this directory contain the exact web-application structure.Agree or Disagree??


Disagree. When war file is extracted it's top (root) should be the name of the web application. META-INF is within the root directory (along with the WEB-INF and other files) of the web application.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with vijitha . create a .war file and place it under webapp folder of tomcat,then start the tomcat. now you watch how the .war file extracted
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it. Thanks
 
MalanS Subramanian
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Poonam,
you have highlighted options B and E as the correct answer for the question. I feel that option D should also be included, since a war file can contain JSP, Servlets and other resources like image files, static HTMLs, js files etc...

Warm Regards,
Malan
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you have highlighted options B and E as the correct answer for the question. I feel that option D should also be included, since a war file can contain JSP, Servlets and other resources like image files, static HTMLs, js files etc...


yes malan you are right. Thanks budy
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic