getServletContext.getRealPath("/config.txt") will return the path to config.txt in the root of your apps directory.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 12, 2002 5:00 PM > To: Tomcat Users List > Subject: Quick Question > > > Hi all, > > I wrote a simple java bean that reads a txt file, the problem > is where do > I need to put the txt file??... > What is the default directory in Tomcat??.... > > when I put something like this in my java bean : > FileReader("config.txt").... > Where does tomcat look for that file?.... > > thanks > Alex > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>