title: Java variable across multiple include blocks - variable cannot be resolved
body: <p>I have jsp page that looks something like this:</p>
  
  <h1>MyPage.jsp</h1>
  
  <pre><code>&lt;%@ include file = "/Title.jsp" %&gt;
  &lt;%@ include file = "/Header.jsp" %&gt;
  &lt;html&gt;...&lt;/html&gt;
  </code></pre>
  
  <p>In Title.jsp there is a instance of "user", let's say:</p>
  
  <pre><code>User user = new User();
  </code></pre>
  
  <p>in Header.jsp user is referenced as</p>
  
  <pre><code>user.setName("John");
  </code></pre>
  
  <p>Eclipse is showing error that "user cannot be resolved to variable" in header.jsp file. I perfectly understand why. <strong>Is there a way to tell Eclipse to ignore this particular error for this particular variable?</strong> Is there anything that can be done here?.</p>
  
  <p>At work, I am supporting some old (and big and ugly) Java application that is actually a web application. I am trying to convert this Java Project to Java Dynamic Web Project. Before I converted it, somehow Eclipse didn't care about these hanging variables that are all over the place. Now, in Dynamic Web Project, Eclipse is complaining.</p>
  
  <p>Rewriting the code is out of question. Each jsp file is consisted of multiple includes with tons of global variables. I don't won't to touch it more than I need to.</p>