title: How do I pass c:set variable as a java script function parameter
body: <p>I am using <code>&lt;c:set&gt;</code> tag to set the key value to key1. </p>
  
  <pre><code>&lt;c:when&gt;
      &lt;c:set var="Key1" value="${key}" /&gt;
      &lt;a href="some url" onclick="test(--here I need to pass  'Key1'---)"&gt;click here&lt;/a&gt;
  &lt;/c:when&gt;
  </code></pre>
  
  <p>I need to pass this 'Key1' as a parameter of a function. 
  for eg- <code>onclick=test(--here I need to pass 'Key1'---)</code>.</p>
  
  <p>How do I pass ?</p>
  
  <p>Thanks.</p>