title: What's the difference between getRequestURI and getPathInfo methods in HttpServletRequest?
body: <p>I'm making a simple, very lightweight front-controller. I need to match request paths to different handlers (actions) in order to choose the correct one.</p>
  
  <p>On my local machine <a href="http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html#getPathInfo()" rel="noreferrer"><code>HttpServletRequest.getPathInfo()</code></a> and <a href="http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html#getRequestURI()" rel="noreferrer"><code>HttpServletRequest.getRequestURI()</code></a> return the same results. But I'm not sure what will they return in the production environment.</p>
  
  <p>So, what's the difference between these method and what should I choose?</p>