I believe the current directory will vary depending on how
Tomcat is started.  Using getRealPath(""), which gives you
the path of the webapp's base directory, will be much more
reliable.

Cheers,
Larry

> -----Original Message-----
> From: timothy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 11:38 PM
> To: Tomcat Users List
> Subject: Re: which is the current directory for Tomcat Server?
> 
> 
> %TOMCAT_HOME%\bin
> 
> From Timothy
> ----- Original Message -----
> From: "Santosh Varghese" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 01, 2002 6:37 AM
> Subject: which is the current directory for Tomcat Server?
> 
> 
> > Hi,
> >
> >     I  wanted  to  read  some txt  file  from  the  current 
> directory  for
> > tomcat  server. But  I  am  unable  to  find  out  the  current
> directory.
> > Please help me  out
> >
> > Regards,
> > Santosh
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to