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

Question Bank ID : 36 JavaRanch

 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does it mean ?
<b>Files in the WEB-INF directory can not be served to the client.</b>
I was thinking as servlets are executed for Client so it means it is being served to client.
Anyone plz clarify this statement
TIA
and second Today I took first time SCWCD mock at javaranch. Anyone can provide statistics for getting score here and in real exam.
are these are easy or like real one only.(looks like real one.)
again thanks in advance
 
Marlon Bravo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravish,
To keep it simple, if you tried to access the WEB-INF directory or any of its contents by typing the location of the files directly in the browser, Tomcat or any compliant server will return an error code 404 indicating file not found.

How would you then access the servlet if its class files are located in the WEB-INF directory? Tomcat recognizes that when the following uri is requested http://host:8080/somewebapp/servlet/*, it knows to invoke the requested servlet within the WEB-INF/classes directory. Tomcat actually uses a servlet itself and a predefined servlet-mapping in the server's DD to fetch the file.
-Marlon
[ April 22, 2002: Message edited by: Marlon Bravo ]
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marlon
still I have doubt:
If I have asimple html file and I can access it like www.sitename.ext\dir01\dir02\file.html
then this "file.html" will be said that this can be served to client coz we are able to access it through directory structure.
then what abt virtual paths for these dir?
again TIA
 
George Pavamani
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Even i have the same doubt(no:2) as Ravish. How close is the Javaranch's mock-exam to the real exam?. I found it a little too easy. If it is not close to the actual exam, can anybody suggest a mock-exam that is close to the actual exam.
Thanks in advance
George
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic