title: How do I pass Javascript variable to <jsp:setProperty> and JSTL?
body: <p>How do I pass Javascript variable to  and JSTL?</p>
  
  <pre><code>&lt;script&gt;
  
      var name = "john";  
  
      &lt;jsp:setProperty name="emp" property="firstName" value=" "/&gt;   // How do I set javascript variable(name) value here ?
  
      &lt;c:set var="firstName" value=""/&gt;  // How do I set javascript variable (name) value here ?     
  
    &lt;/script&gt;
  </code></pre>