File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock exam doubt

 
Brijesh shah
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
32.Select sample web application file listing with appropriate directory structure
Please select two correct answers.
A.
index.html
/login.jsp
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/lib/basic.jar
/WEB-INF/classes/Test.class
B.
/index.html
/login.jsp
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/jar/basic.jar
/WEB-INF/classes/Test.class
C.
/index.html
/login.jsp
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/classes/basic.jar
/WEB-INF/classes/Test.class
D.
/index.html
/login.jsp
/images/logo.gif
/META-INF/web.xml
/WEB-INF/jar/basic.jar
/WEB-INF/classes/Test.class
E.
/index.html
/login.jsp
/images/logo.gif
/META-INF/web.xml
/WEB-INF/lib/basic.jar
/WEB-INF/classes/Test.class
F.
index.html
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/jsp/login.jsp
/WEB-INF/lib/basic.jar
/WEB-INF/classes/Test.class

The above Question i got from mock exam in which they have given correct answer as A and F... But i think answer should be A and E...So please correct me if i'm wrong.

Thanks;
Brijesh
 
Prasanna Kate
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The correct answer is A and F. E is not correct because the deploment descriptor file (web.xml) should be under WEB-INF and not under META-INF. The container is going to look for it under WEB-INF.
 
Brijesh shah
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prasanna Kate:
The correct answer is A and F. E is not correct because the deploment descriptor file (web.xml) should be under WEB-INF and not under META-INF. The container is going to look for it under WEB-INF.


Thanks Prasanna i got it...
If possible then please look in to my previous thread named servletcontext doubt i tried to learn about it through searching API but not understanding properly and also i dont have much time to search because i am going to take my exam soon..that is the reason i am posting my each query..

Thanks,
Brijesh Shah
-SCJP
-target SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic