• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

withmilk.com

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question: 7
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
I feel C is right as web.xml iskept under that directory
but answer is B. Is anyone with me???
 
Mahesh Mamani
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shan java:
Question: 7
Select false options related with the directory structure of a web application.
I feel C is right as web.xml iskept under that directory
but answer is B. Is anyone with me???

Hi,
Pls have a look at the question again...They are asking for the FALSE option, not the TRUE option.
Mahesh
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A,C,D are false. It is not required to keep images under images dir. There is nothing called as server.xml in web app,it is only web.xml.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i am still not clear
I feel c is the only false option and the rest are true options.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D is false beacause it is not required that u place images under images directory..I guess it is a convention rather than a rule..
U can read more about web app directory structure in Serverlet spec pg 59. A is true since u can place servlets in jar file contAined in /WEB-INF/lib dir.
The /WEB-INF/lib/*.jar area for Java ARchive files. These files contain
servlets, beans, and other utility classes useful to the web application. The web
application class loader must be able to load classes from any of these archive
files.
Originally posted by shan java:
hey i am still not clear
I feel c is the only false option and the rest are true options.
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i think the TRUE option is only B. so rest of them are FALSE.
regarding the first option, servlet class files are kept into web-inf/classes only if they mean user created servlets (and i'm sure thats what they mean).
second is right as JavaBeans are only special java classes nothing more and all the .class files are there in the classes directory.
rest of the 2 options are already argued about by all of u.
regards
maulin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic