File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "request.getPathInfo() returns null" Watch "request.getPathInfo() returns null" New topic

request.getPathInfo() returns null

Arathi Binoy

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

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:
subject: request.getPathInfo() returns null
It's not a secret anymore!