title: How to set the JSTL variable value in javascript?
body: <p>How to set the JSTL variable value in java script?</p>
  
  <pre><code>&lt;script&gt;
  
   function function1()
  
   { 
  
    var val1 = document.getElementById('userName').value;
  
    &lt;c:set var="user" value=""/&gt;  // how do i set val1 here?   
  
   }
   &lt;/script&gt;
  </code></pre>
  
  <p>How do I set the '<strong>user</strong>' variable (<em>JSTL</em>) value from '<strong>val1</strong>' (<em>Java script</em>)?</p>