tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Douglas, Rory" <Rory.Doug...@na.sunchem.com>
Subject RE: FileReader within a Servlet
Date Wed, 24 Apr 2002 13:45:49 GMT
use the getRealPath(<<pathname relative to web-app>>) method of the
ServletContext and use that in your File constructor

-----Original Message-----
From: Günter Kukies [mailto:Guenter.Kukies@heuft.org]
Sent: Wednesday, April 24, 2002 9:38 AM
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

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message