in jsp page use
application.getRealPath("/webapps");
in Servlet
use config.getServletContext().getRealPath("/webapps");
----- Original Message -----
From: "Santosh Varghese" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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:[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