title: How can I parse a URL using JSP/JSTL?
body: <p>I want to capture the base path of a given url</p>
  
  <p><a href="http://mydomain.com/mypath/coolpath/favoritepath/file.htm" rel="nofollow noreferrer">http://mydomain.com/mypath/coolpath/favoritepath/file.htm</a></p>
  
  <p>so basically i just want this:</p>
  
  <p>/mypath/coolpath/favoritepath/</p>
  
  <p>Any ideas how to do this without using straight Java?</p>