i am reading data from a file using
jsp.
FileInputStream fin=new FileInputStream("c:/program files/tomcat/project/book1.txt");
i want to remove this path "C:/......." and i want to use relative path like "/book1.txt" it was not working.
Even i went for java.io.File.getPath();but i did not succeeded
i am getting the path upto "c:/program files/tomcat/bin"
can any one help on this