title: Proper installation of JSTL for Maven (Intellij IDEA)
body: <p>I am trying to use JSTL for my index.jsp page, but for some reason each time after packaging project to .war and running with Tomcat it gives me following errors:</p>
  
  <pre><code>HTTP Status 500 - /index.jsp (line: 12, column: 0) Unterminated &amp;lt;c:if tag
  </code></pre>
  
  <p>or</p>
  
  <pre><code>HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
  </code></pre>
  
  <p>From what I found on google, there are 2 ways to install JSTL into your Maven project:
  <strong>1) Add this to pom.xml</strong></p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
    &lt;artifactId&gt;jstl&lt;/artifactId&gt;
    &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>2) Add some jars to WEB-INF/lib, but here's the problem: no such folder was automaticaly created and if I do it manually it does not help. Project structure looks like this:</strong>
  <a href="https://i.stack.imgur.com/gK7Qh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gK7Qh.png" alt="enter image description here"></a></p>
  
  <p>The code of index.jsp is the following:</p>
  
  <pre><code>&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;c:if&gt; Tag Example&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;c:set var="salary" scope="session" value="${2000*2}"/&gt;
  &lt;c:if test="${salary &gt; 2000}"&gt;
     &lt;p&gt;My salary is: &lt;c:out value="${salary}"/&gt;&lt;p&gt;
  &lt;/c:if&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So, what should I do to make those work? I can't find any guide or piece of information that could help me solving this. Thanks for having a look at my problem!</p>