Edit Edit

Java Servlet FAQ

How do you retrieve extra path information?

Use the following HttpServletRequest methods to retrieve the extra path information:

public String getPathInfo()gets the extra path information
public String getPathTranslated()gets the fully qualified path of the file on the server

For example, if you have the URL:


getPathInfo() returns "/MyFile.data"
getPathTranslated() could return "c:\JavaWebServer\html\MyPath\MyFile.data"

Last updated 12/26/1999 05:36:01 PM