Hello,
does somebody knows how to get the context path on server side? I am trying to delete a file in the folder "WebInf/uploads", but I am unable to get the file path.
getServletContext().getRealPath( "/" ) + "uploads/";
I used the import "javax.servlet.http.HttpServlet" for the class
But it does not help.
Thanks
Andy
does somebody knows how to get the context path on server side? I am trying to delete a file in the folder "WebInf/uploads", but I am unable to get the file path.
getServletContext().getRealPath( "/" ) + "uploads/";
I used the import "javax.servlet.http.HttpServlet" for the class
But it does not help.
Thanks
Andy
Comment