Virtual Directory Translation Methods
The ServletContext class provides methods for handling virtual
paths:
- getRealPath(String p) returns the real file path for the given
path
- getResource(String p) returns the URL for the given path
- getResourceAsStream(String p) returns an input stream for
reading the URL for the given path
- getResourcePaths(String p) returns a set of all resources in
the directory specified by the given path