title: How do I access <c:set var> in a <%= scriptlet %>
body: <p>I started following one tutorial about JSTL tags. The repositories tutorial used are too old, so I wanted to try it my way using some newer versions. Unfortunately, I am stuck now. I will tell you what I did, so I hope, you can help me out.</p>
  <p>I downloaded 2 jar files from these two links: <a href="https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/javax.servlet.jsp.jstl-api/1.2.2" rel="nofollow noreferrer">api</a>, <a href="https://mvnrepository.com/artifact/org.glassfish.web/javax.servlet.jsp.jstl/1.2.5" rel="nofollow noreferrer">implementation</a>.</p>
  <p>Jar files I got, I copied inside <code>WebContent/Web-INF/lib</code>. Now if I do this, I get an error:</p>
  <pre><code>&lt;%@ taglib uri=&quot;http://java.sun.com/jsp/jstl/core&quot; prefix=&quot;c&quot; %&gt;
  
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;c:set var=&quot;varA&quot; value=&quot;hello world&quot; /&gt;
  &lt;%=varA %&gt; //varA cannot be resolved to a variable
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>To be honest I have no idea why we need import statement when <em>jar</em> files are literally in my project's <code>lib</code> folder. Also, does anyone know what is wrong here and why editor can't find my variable <em>varA</em>?</p>