title: Spring MVC absolute URL problem
body: <p><strong>Background</strong></p>
  
  <p>I am developing an application (with <code>Spring MVC</code>) with its base path as:</p>
  
  <pre><code>http://localhost:8080/myapplication/
  </code></pre>
  
  <p>I have a stylesheet <code>/css/style.css</code> that I am trying to refer with <code>absolute path</code> in a JSP as:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="/css/style.css" type="text/css" media="screen, projection"&gt;
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>The stylesheet never loads in the browser. When I follow the stylesheet link through browser's <em>view source</em> feature, the link appears to be:</p>
  
  <pre><code>http://localhost:8080/css/style.css
  </code></pre>
  
  <p>Which should have had been:</p>
  
  <pre><code>http://localhost:8080/myapplication/css/style.css
  </code></pre>
  
  <p>I used to fix this issue with <code>html:rewrite</code> tag while working with <code>Struts</code>. Is there any equivalent tag/technique in <code>Spring MVC</code>?</p>
  
  <p>Thanks for your time.</p>