File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Web-App Directory Structure! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Web-App Directory Structure!" Watch "Web-App Directory Structure!" New topic

Web-App Directory Structure!

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032


What it means by saying document root? Are they meaning the Root directory??

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Also what it means by the line below from Mikalai Zaikin??

"However, the contents of the WEB-INF directory are visible to servlet code using the getResource and getResourceAsStream method calls on the ServletContext, and may be exposed using the RequestDispatcher calls."
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
may be...
actually its 'context root' i.e the directory -

tomcat_dir/webapps/your_webapp <- the root directory !

about your second question, the explanation is -

the contents in WEB-INF are not visible to the clients. but your webapp can
access all such resources using the methods mentioned above.


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

"Document root" might also be referring to the root element of a JSP document (or maybe even another xml file). This is basically the outermost element/tag of the file. If you had given us more context around the statement, it would have been easier to provide a clearer answer.

A good workman is known by his tools.
I agree. Here's the link:
subject: Web-App Directory Structure!
It's not a secret anymore!