O'Reilly logo
  • Mashrur Mia thinks this is interesting:

shows a servlet that uses these two methods to print the extra path information it receives and the resulting translation to a real path.

From

Cover of Java Servlet Programming, 2nd Edition

Note

For getPathInfo() and getPathTranslated() to work, I needed to map the servlet to wildcard URL