Absolute path
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   A_Stephen
Posted On:   Monday, May 14, 2001 04:36 PM

How do i get the full path of a file?
eg.
the virtual path is
/virtualpath/filename.jpg
the actual path is
G:/virtual/filename.jpg
I have the first value how do i get the second value?
Thanks,
Cheers.

Re: Absolute path

Posted By:   Anonymous  
Posted On:   Monday, May 14, 2001 05:21 PM

If with 'virtual path' you are referring to the requested file of a web server, yes, you can. Take a look at:

class javax.servlet.ServletContext

method getRealPath(String path).

Regards.
About | Sitemap | Contact