----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Good day,
I am still quite confused about access the file system under jServ. I
currently have access to two boxes running jServ. One is my personal linux
development box. The other is my host's (HostPro) SGI origin server. I
want to access the file system directly (not via http) from a servlet. I
would like to do this in a manner that is transferable to both systems. Ie
not hard code a path like /home/httpd/xml. There doesn't seem to be any way
to get a base working directory through an Servlet api call. I was under the
impression that calling ServletContext.getRealPath("/") would return
/home/httpd on my Linux box and /virtualhosts/baus.net on the host's server,
but it seems to always return null.
The only solution I can see, and I guess this may actually be optimal, is to
modify the properties file and add the path to the init args. This my best
(only?) bet?
thanx,
christopher
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]