tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donie Kelly <>
Subject RE: FileReader within a Servlet
Date Wed, 24 Apr 2002 13:43:46 GMT
ServletContext sc;
String RootPath=null;
        sc = getServletContext();
   	  RootPath = sc.getRealPath("/");

This will get you the path of the $TOMCAT/webapps/yourappdir


-----Original Message-----
From: Günter Kukies []
Sent: April 24, 2002 14:38
To: Tomcat Users List
Subject: FileReader within a Servlet


how can I get the path base for a file within a web application? I want to
use a FileReader within a Servlet. 



To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message