ServletContext sc;
String RootPath=null;
sc = getServletContext();
RootPath = sc.getRealPath("/");
This will get you the path of the $TOMCAT/webapps/yourappdir
Donie
-----Original Message-----
From: G�nter Kukies [mailto:[EMAIL PROTECTED]]
Sent: April 24, 2002 14:38
To: Tomcat Users List
Subject: FileReader within a Servlet
Hello,
how can I get the path base for a file within a web application? I want to
use a FileReader within a Servlet.
G�nter
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>