This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "request.getPathInfo() " Watch "request.getPathInfo() " New topic
Author

request.getPathInfo()

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()?

Thanks.
 
Don't get me started about those stupid light bulbs.
 
subject: request.getPathInfo()