0 Replies Latest reply on Mar 17, 2004 6:46 AM by suhaib

    Why did  getRealPath(

    suhaib Newbie

      I avoid to use request.getRealPath("/"); because this method was deprecated ,so I used the new version servletContext.getRealPath("");
      but it retrns null.




      String serverPath = servletContext.getRealPath("");
      System.out.println("serverPath = "+serverPath);
      ================================
      output:
      serverPath = null