Getting full path from an HTTP request <p>I would like to know how can I get the full path of an HTTP request.</p> <p>If a have a request like <code>http://localhost:8080/path1/path2</code> how can I get the full <code>/path1/path2</code>?</p> <p>Using <code>request.getContextPath()</code> returns only the /path1 section.</p>