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() 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() " Watch "request.getPathInfo() " New topic


Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi, supposedly we have an object request of HttpServletRequest type, what does request.getPathInfo() return exactly? The path to "this" servlet? How is it different from getServletContext().getRealPath("/") and request.getPathTranslated()?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: request.getPathInfo()
It's not a secret anymore!