Re: specifying path for file to be read by servlet with Tomcat
From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 02/08/04
- Next message: Justin Mencl: "Re: how can I put jsp files with html files"
- Previous message: Andrew Thompson: "Re: Java Media Framework - Won't Play MP3 - Codecs?"
- In reply to: Yang Xiao: "specifying path for file to be read by servlet with Tomcat"
- Next in thread: hiwa: "Re: specifying path for file to be read by servlet with Tomcat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 08 Feb 2004 05:34:45 GMT
Yang Xiao wrote:
> Hi everybody,
> I'm trying to read a txt file to be used by a servlet
You might investigate..
request.getRealPath("Topics.txt");
-- Andrew Thompson * http://www.PhySci.org/ Open-source software suite * http://www.PhySci.org/codes/ Web & IT Help * http://www.1point1C.org/ Science & Technology
- Next message: Justin Mencl: "Re: how can I put jsp files with html files"
- Previous message: Andrew Thompson: "Re: Java Media Framework - Won't Play MP3 - Codecs?"
- In reply to: Yang Xiao: "specifying path for file to be read by servlet with Tomcat"
- Next in thread: hiwa: "Re: specifying path for file to be read by servlet with Tomcat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|