title: PageNotFound - No mapping found for HTTP request with URI
body: <p>I am getting this error : </p>
  
  <p>o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI</p>
  
  <p>when I try to render a view from an controller/action</p>
  
  <p>I've read about it being that servlet mapping being:</p>
  
  <p>
  Spring MVC Dispatcher Servlet
  /webspring/*
  </p>
  
  <p>and the star hijacks even the jsp renderings. How can I overcome this ( as simple as possible ) and hopefully without having to resort to .do endings so it becomes controller/action.do </p>
  
  <p>Thanks !</p>
  
  <p><strong>===============EDIT=================</strong></p>
  
  <p>It appears that this happens if your jsp is not in the WEB-INF folder, but outside but in WebContent... any idea why? The jsp's cant be outside? Or shouldnt?</p>
  
  <p>But now I still have problems with linking to a css file... which usually are outside of the web-inf directory, right?</p>
  
  <p>A link: </p>
  
  <pre><code>    &lt;link rel="stylesheet" href="webspring/public/main.css" type="text/css"/&gt;
  </code></pre>
  
  <p>where the directory structure is:</p>
  
  <blockquote>
    <ul>
    <li>WebContent</li>
    <li>WEB-INF</li>
    <li><p>webspring</p>
    
    <ul>
    <li><p>public</p>
    
    <p>main.css</p></li>
    </ul></li>
    </ul>
  </blockquote>
  
  <p>...  is being resolved to </p>
  
  <p><strong>http://localhost:8080/XXXWeb/webspring/auth</strong>/webspring/public/main.css</p>
  
  <p>when the <strong>style tag is added</strong> on page with  url: </p>
  
  <p><strong>http://localhost:8080/XXXWeb/webspring</strong>/auth/loginForm</p>
  
  <p><strong>auth</strong> is the controller.</p>
  
  <p>What is going on here?</p>