title: How to import a CSS file in JSP?
body: <pre><code>&lt;%String path = application.getRealPath("/");%&gt;
  &lt;%@page import="index.css" %&gt;
  </code></pre>
  
  <p>I am using String path as above to get the real path of my directory. I want to import index.css from the css folder.</p>
  
  <p>Is it possible in JSP to do something like <code>&lt;%@page import = path+"css/index.css"%&gt;</code> or is there an easier way to do this?</p>