I setup Tomcat server locally and I placed my text file in my C drive (c:\\test\\myfile.txt).
In my servlet, I specify the exact path to the file to read it. I succe
Place your config file under your webapp WEB-INF/classes folder and read like this in code
InputStream is=
YourClassName.class.getResourceAsStream("myfile.txt");
You can also try these other option if you want in JSP.
String myfile=
application.getRealPath("myfile.txt"));
or
String myfile =
getServletContext().getRealPath("myfile.txt"));