wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes what is document root? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "what is document root?" Watch "what is document root?" New topic
Author

what is document root?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
is it web application root or WEB-INF folder?
Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
It's the parent directory of WEB-INF


Anthony W.<br />MCP, SCJP 1.4, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
kriti sharma
Ranch Hand

Joined: Feb 16, 2001
Posts: 160
this gives the document root for the server installation at your system.

public void init()
{
ServletContext context = getServletContext();
path = context.getRealPath("/");
System.out.println(path);
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is document root?
 
Similar Threads
how to hide application name in url
form-login-config
Including files using the deployement descriptor
taglib location
Directory Structure