how to obtain the relative path of a resource in a j2ee project
- by Neeraj
I have a Dynamic Web Project having a flat file (or say text file). I have created a servlet in which I need to use this file.
My code is as following:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// String resource = request.getParameter ("json") ;
if (…