This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
You have developed a web application and have packaged it in a war file named sample.war. Which of the following are true? (question from enthuware)
A. When you deploy the war file, META-WAR folder is automatically created under /sample.
B. When you deploy the war file, META-INF folder is automatically created under /sample.
C. When you deploy the war file, MANIFEST.MF file is automatically created under /sample.
D. When you deploy the war file, META-INF folder is automatically created under /sample/WEB-INF.
E. When you deploy the war file, the container may validate whether you have configured your application classes correctly.
the given answers are in bold. I thought B, D would be the correct answers. As mention in HFSJ that .war files is exactly behave like a normal web-application dierctory structure. "Rules dosen't change for the .war files"
1. Then why this option not included in the correct options???
2. option E is not very clear to me. Is this the case only for .war files??
Can anyone please tell me the exact structure of a .war files.
well in .jar files, the META-INF folder is at the top of the directory structure. And so does it in a .war file. If it is in the WEB-INF directory, then it is not at the top of the directory structure in the archive like .jar files. So the rule would be changed but the rule remains the same as you also know. I hope I'm clear...