----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Very good. Good luck

Brevsville Administrator wrote:

> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> Tarak
>
> Since various servlet containers seem to handle docroot differently, I
> prefer to pass the docroot as a initarg to the servlet, so I know it will
> be right.
>
> Chris
>
> On Fri, 03 Nov 2000 08:19:55 -0500, Tarak Patel wrote:
>
> >----------------------------------------------------------------
> >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!!!
> >----------------------------------------------------------------
> >
> >Dear Z A:
> >
> >    Try something like the below code segment. This would be a lot clean and
> >should solve the problem. Good luck.
> >
> >    ******************************************
> >    File locateinFile = new File(path+"file.dat");
> >    BufferedReader inFile = new BufferedReader(new
> >FileReader(locateinFile.getAbsolutePath()));
> >    *******************************************
> >
> >
> >Tarak
> >
> >Z A wrote:
> >
> >> ----------------------------------------------------------------
> >> 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!!!
> >> ----------------------------------------------------------------
> >>
> >> Hi folks,
> >>
> >> I have Apache 1.3.9, Apache Jserv 1.1.2 Installed and
> >> running on Solaris 5.7
> >>
> >> In httpd.conf the ServerRoot is "/users/exp/apache"
> >>
> >> In my Servlet I have following code :
> >>
> >> BufferedReader inFile = new BufferedReader(new
> >>                 FileReader(path+"file.dat"));
> >>
> >> where path = "xyz/abc/";
> >>
> >> and xyz/abc/file.dat is under directory
> >> "/users/exp/apache".
> >>
> >> I get an file not found Exception.
> >>
> >> While the same code works perfectly fine on Windows.
> >>
> >> What can be the problem?
> >>
> >> Any help is highly appreciated.
> >>
> >> __________________________________________________
> >> Do You Yahoo!?
> >> From homework help to love advice, Yahoo! Experts has your answer.
> >> http://experts.yahoo.com/
> >>
> >> --
> >> --------------------------------------------------------------
> >> Please read the FAQ! <http://java.apache.org/faq/>
> >> To subscribe:        [EMAIL PROTECTED]
> >> To unsubscribe:      [EMAIL PROTECTED]
> >> Search Archives:
> >> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> >> Problems?:           [EMAIL PROTECTED]
> >
> >
> >
> >--
> >--------------------------------------------------------------
> >Please read the FAQ! <http://java.apache.org/faq/>
> >To subscribe:        [EMAIL PROTECTED]
> >To unsubscribe:      [EMAIL PROTECTED]
> >Search Archives:
> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> >Problems?:           [EMAIL PROTECTED]
> >
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to