File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes extra path 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 "extra path" Watch "extra path" New topic

extra path

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi what is "extra path"? And how is it specified?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Bob, the "extra path" is used to indicate a file on the server that the servlet should use for something. This path information is usually encoded in teh URL of an HTTP request or in the ACTION parameter of an HTML form. You can use the getPathInfo()and getPathTranslated() methods to determine what the extra path is.


So much trouble in the world -- Bob Marley
Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Thanks Bosun!
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
As an example, consider the following URL:
and imagine that the a web application is mapped to "/myapp" and has a servlet mapped to "view" within it. The extra path information would be the "fred/jim/ugh.xml".

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: extra path
It's not a secret anymore!