If you want to find the file in RFS (real file system) in the WEB-INF folder, you can get the path through:
String filepath = pageContext.getServletContext().getRealPath("/") + "WEB-INF" + java.io.File.separator + "index";
and then use common java file methods to read it.
source
share