Hi i did File f = new File(mypath); and it works What is the danger of doing so?
Ashish On 3/28/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2008/3/28, Ashish Kulkarni <[EMAIL PROTECTED]>: > > > I can use servletContext.getResource('/WEB-INF/myconfig.xml'); to read > > myconfig.xml file which is under WEB-INF from a servlet > > If i keep this file at c:/test/myconfig.xml file, can i read it from > > a servlet, if so how?? > > > You can read it with a File object, giving the absolute path, but in a > web application is very, very....... very very very dangerous! > > Antonio > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >