title: Servlet: How to get own URL pattern?
body: <p><strong>Can a servlet or filter look up its own URL pattern?</strong></p>
  
  <p>Meaning, if I bind some servlet or filter to <code>/first/*</code> and <code>/second/*</code> and a request comes in, can I find out which of the two patterns triggered it?</p>
  
  <p>Even if a servlet is bound only to one pattern, is there a way to look it up from inside the servlet (instead of hard-coding a value)?</p>