Hello,
I am trying to access a txt file from the service method of
Servlet code. I am getting a Null Pointer Exception at this line
FileInputStream fis= new FileInputStream(source);
I have placed the source file in all possible locations. But still I am getting the same problem.
What would be the right location to place the source file. My servlet hierarchy looks like this:
+Servlet Folder
+WEB-INF
+CLASSES
-servlet.java&class
+LIB
-web.xml
Hope someone helps me out.