This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Web-App Directory Structure!" Watch "Web-App Directory Structure!" New topic
Author

Web-App Directory Structure!

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Guys,

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: 9345
    
    2

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.

hth


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
Sheriff

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: http://aspose.com/file-tools
 
subject: Web-App Directory Structure!
 
Similar Threads
ROOT.war
log4j refuses to write to file
jsp tomcat 5.5 problem
FileWriter
package problem