Friday 1 August 2014

Path Translation Methods

There are two convenience methods in the API which allow the Developer to obtain the file system path equivalent to a particular path. 

    ServletContext.getRealPath
    HttpServletRequest.getPathTranslated

In situations where the servlet container cannot determine a valid file path for these methods, such as when the Web application is executed from an archive, on a remote file system not accessible locally, or in a database, these methods return null.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment