*
The moose likes Servlets and the fly likes request.getPathInfo() returns null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "request.getPathInfo() returns null" Watch "request.getPathInfo() returns null" New topic
Author

request.getPathInfo() returns null

Arathi Binoy
Greenhorn

Joined: Jun 15, 2004
Posts: 2
I have a servlet deployed in weblogic 7.0. When I try to get the pathinfo as request.getPathInfo(), it returns null. What could be the problem.?
Lalit Kapoor
Greenhorn

Joined: Jun 06, 2004
Posts: 20
It means that you haven't supplied any extra path info in the URL while accessing servlet. For example, in the following URL:
http://host ort/application_Name/servlet_Name/index.html
the index.html represents the extra path info that is retrieved and displayed by the req.getPathInfo() method. So, specify extra path info after registered servlet name and access path info using req.getPathInfo() after that.

Hope this will help you..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request.getPathInfo() returns null
 
Similar Threads
Extract information form URL
request.getPathInfo() vs request.getServletPath()
HttpServletRequest API
Physical Path of a file
Dynamic URLs