title: "someVariable cannot be resolved" error indicated in Eclipse for an included JSP
body: <p>So I have a main JSP index page, "index.jsp", which has several includes. Something like,</p>
  
  <pre><code>&lt;%@ include file="/WEB-INF/views/includes/jstl/include.jsp" %&gt;
  &lt;%@ include file="/WEB-INF/views/includes/licenses/license.jsp" %&gt;
  &lt;%@ include file="/WEB-INF/views/includes/generalHtml/header.jsp" %&gt;
  &lt;%@ include file="/WEB-INF/views/includes/navigation/navbar.jsp" %&gt;
  &lt;%@ include file="/WEB-INF/views/includes/generalHtml/footer.jsp" %&gt;
  </code></pre>
  
  <p>The "include.jsp" contains a string "String basePath = request.getContextPath();".</p>
  
  <p>"navbar.jsp" uses "basePath", but Eclipse puts a red X on any line of "navbar.jsp" that uses "basePath" with the message "basePath cannot be resolved".</p>
  
  <p>My webapp works just fine, but wondering what might be causing this, or if it can be resolved? Or maybe there's a way to make Eclipse ignore this? I just want the false positive red X's to go away. I suppose Eclipse doesn't understand that "navbar.jsp" is getting "basePath" from "include.jsp" because it is compiled together with "index.jsp".</p>