title: Get content by URI
body: <p>I create a small java servlet and would like to map the content dynamically by the URI. For example if someone call following URI <code>http://example.com/yell/2013-08-01/first-article</code> my servlet should get the content by date and title from the database and response it to the client.</p>
  
  <p>I not sure about the 'correct' pattern to implement this. My idea was to listen at  <code>&lt;url-pattern&gt;/yell/*&lt;/url-pattern&gt;</code>, get the path with <code>request.getRequestURI(</code>) and splitt it at the <code>'/'</code> character. Is this the common pattern? What would you suggest? I guess REST is not the 'correct' way? A small example would be create. Thanks for you hints!</p>