tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santosh Varghese" <santo...@asmasoft.com>
Subject RE: which is the current directory for Tomcat Server?
Date Fri, 01 Feb 2002 01:42:48 GMT
Hi,

   This will  solve the  problem  of  getting  the  full real path  of the
directory '/webapps'  only. I  wanted to  know  which  is  the  directory
from which  the  tomcat  server executes, so  that when  I  say  just
File.open"(filename.txt")  should  work. I  should  be  able  to  read  the
contents  of  filename.txt. I  hope  u got  my  problem.

Regards,
Santosh

-----Original Message-----
From: Galbayar [mailto:galbayar@mobicom.mn]
Sent: Thursday, January 31, 2002 5:26 PM
To: Tomcat Users List
Subject: Re: which is the current directory for Tomcat Server?

in jsp page use
application.getRealPath("/webapps");
in Servlet
use config.getServletContext().getRealPath("/webapps");
----- Original Message -----
From: "Santosh Varghese" <santoshv@asmasoft.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, February 01, 2002 06:37
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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message