Use the following HttpServletRequest methods to retrieve the extra path information:
Method Descriptionpublic 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:
http://server:8080/servlet/ServletName/MyPath/MyFile.data?nameparam=John+Smith
getPathInfo() returns "/MyFile.data"
getPathTranslated() could return "c:\JavaWebServer\html\MyPath\MyFile.data"
| Last updated 12/26/1999 05:36:01 PM |