title: Can't link CSS-file to JSP
body: <p>I'm building a dynamic web project using JSP and Servlets with Tomcat 7.0 in Eclipse. Everything works fine when I have the CSS-code inside the JSP-file, but when I'm moving it into a seperate file, I can't get the JSP-file to find the CSS-file. My file strucuture look like this:</p>
  
  <pre><code>MyProject
  -src
  -build
  -lib
  -WebContent
  --MyJsp.jsp
  --MyCss.css
  --META-INF
  --WEB-INF
  </code></pre>
  
  <p>This is what I've tried:</p>
  
  <pre><code> &lt;link rel = "stylesheet" type ="text/css" href = "/MyCss.css"/&gt;
   &lt;link rel = "stylesheet" type ="text/css" href = "MyCss.css"/&gt;
   &lt;link rel = "stylesheet" type ="text/css" href = "/MyProject/WebContent/MyCss.css"/&gt;
   &lt;link rel = "stylesheet" type ="text/css" href = "${pageContext.request.contextPath}/MyCss.css"/&gt;
  </code></pre>
  
  <p>Literally nothing works. The JSP-pages doesn't find the CSS-file. (I'm not using a web.xml and the first that is loaded is a servlet, if that has someting to do with it).</p>
  
  <p>I know that other threads about this issue exists, but none of the answers works for me.</p>
  
  <p>Hank </p>