title: IntelliJ and JSP/JSTL cannot resolve taglib for JSTL in tomcat7
body: <p>First of all my JSTl code works on my server because i have the proper Jar file in the Lib folder in tomcat7.  This is just really an IDEA problem.  My questions comes down to where i put the same jar file in my file directory within IntelliJ. </p>
  
  <p>I have ran into a error in IntelliJ and JSTL.</p>
  
  <p>My problem is that when i use </p>
  
  <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  </code></pre>
  
  <p>It results in Cannot resolve taglib with uri.  I have tried different Jar files and I do know that i have to correct version for my servlet.  </p>
  
  <p>Im running tomcat7 on Ubuntu Server 15.04, and IntelliJ 14.1.3.</p>
  
  <p>I have tried importing the jar file though the Project Structure, and including it in various places but still the same error after re-building the project, and closing down and reopening the IDEA.  </p>
  
  <p>This sample code runs when deployed to tomcat but IntelliJ keeps giving errors.</p>
  
  <pre><code>&lt;table border="1"&gt;
      &lt;c:forEach var="a" items="${data}"&gt;
          &lt;tr&gt;
              &lt;td&gt;${a}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/c:forEach&gt;
  &lt;/table&gt;
  
  &lt;c:forEach begin="0" end="255" var="i"&gt;
      &lt;span style='color:rgb(
          &lt;c:out value="${i}"/&gt;,
          &lt;c:out value="${i}"/&gt;,
          &lt;c:out value="${i}"/&gt;);'&gt;
          &lt;c:out value="${i}"/&gt;&lt;/span&gt; &lt;br /&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>I would like to know how to stop IntelliJ from giving errors on my Syntax even though the code works.</p>
  
  <p>I have read <a href="https://stackoverflow.com/questions/7253034/jstl-in-intellij-gives-errors-in-jsp">JSTL in IntelliJ gives errors in JSP</a></p>
  
  <p>and </p>
  
  <p><a href="https://www.jetbrains.com/idea/features/jsp_editor.html" rel="noreferrer">https://www.jetbrains.com/idea/features/jsp_editor.html</a></p>
  
  <p>Still no luck.</p>