title: JSP and Spring Application
body: <p>In our spring Application in one of the JSP pages, we have a link</p>
  
  <pre><code>&lt;link rel="stylesheet" href="&lt;%=request.getContextPath()%&gt;/css/bootstrap.min.css"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>When we run the Project in local environment css works but it does not work in different environment</p>
  
  <p><strong><em>In the other environment CSS URL being</em></strong></p>
  
  <pre><code>&lt;link rel="stylesheet" href="/myapp/css/jquery-ui.css"&gt;
  </code></pre>
  
  <p>when we remove the App name(request.getContextPath()) below this</p>
  
  <pre><code>&lt;link rel="stylesheet" href="/css/jquery-ui.css"&gt;
  </code></pre>
  
  <p>The css works in the other environment.</p>
  
  <p>***1. ***In Local System, the Below URL is Working perfectly.******</p>
  
  <pre><code> &lt;link rel="stylesheet" href="&lt;%request.getContextPath()%&gt;/css/bootstrap.min.css"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>When we remove the ContexPath() means the CSS didn't work</p>
  
  <pre><code>&lt;link rel="stylesheet" href="/css/bootstrap.min.css"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>How to handle this issues in local and other environment?</p>