File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the path info as returned by getPathInfo of httpServletRequest

 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anyone give me a practical example of the path info as returned by getPathInfo() of HttpServletRequest. Apparently it is different from the servlet path and the query string. What is it then?

Thanks in advance,

Julien.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33674
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Julien,
Suppose you have your servlet to match "/javaranch/*" and I type the URL "mysite.com/javaranch/bigmoose?name=value"

The components are:
domain - mysite.com
servlet path - javaranch
path info - bigmoose
query string - name=value

This could be used if you have a servlet that processes many types of requests.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Such as a Front Contriller.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic