protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String path = request.getSession().getServletContext().getResource("/WEB-INF").getFile().substring(1); System.out.println(path); }