Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web app structure

 
amol re
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From http://www.withmilk.com:
Select false options related with the directory structure of a web application.
A Servlet class files are kept in yourWepApp/WEB-INF/lib
B JavaBeans are kept in yourWepApp/WEB-INF/classes
C Server.xml is kept in yourWepApp/WEB-INF/
D Images are kept in yourWepApp/images
Answer and explaination:
A, C and D are correct. B is the only true option and therefore incorrect. Jarred classes are kept in /WEB-INF/lib,web.xml (NOT server.xml) is in yourWepApp/WEB-INF/, images CAN be in a folder called images but they do not have to.
I think the correct answer should only be A.
Because the web app doesnt become corrupt if i put a file called server.xml in WEB-INF nor does it stop me from putting images in web-inf/images folder.
Does the exam include questions like these? looks more like "english statement interpretation" question than a web app related question.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amol re:
Select false options related with the directory structure of a web application.
A Servlet class files are kept in yourWepApp/WEB-INF/lib
B JavaBeans are kept in yourWepApp/WEB-INF/classes
C Server.xml is kept in yourWepApp/WEB-INF/
D Images are kept in yourWepApp/images
Answer and explaination:
A, C and D are correct. B is the only true option and therefore incorrect. Jarred classes are kept in /WEB-INF/lib,web.xml (NOT server.xml) is in yourWepApp/WEB-INF/, images CAN be in a folder called images but they do not have to.
I think the correct answer should only be A.
Because the web app doesnt become corrupt if i put a file called server.xml in WEB-INF nor does it stop me from putting images in web-inf/images folder.

Dear Amol,
You are asked to select the false options
A. Servlet class files are kept in yourWepApp/WEB-INF/lib
is FALSE because servlet class files are kept in /WEB-INF/classes/
B. JavaBeans are kept in yourWepApp/WEB-INF/classes
is TRUE;
C. Server.xml is kept in yourWepApp/WEB-INF/
is FALSE; keeping the server.xml in yourWepApp/WEB-INF/ wont corrupt ur web application coz u must have a copy of it in the tomcat/conf/ directory...try this by renaming server.xml file in the conf/ directory to some other name and start ur server..
D. Images are kept in yourWepApp/images
it is not mandatory that the images are to be kept in yourWepApp/images directory..u can keep it anywhere in yourWebApp..so D is false..
so as per the question
A C D are correct..
i hope this helps..
Thanks
Raj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic