title: passing JSTL to javascript
body: <p>I want to pass JSTL from my onclick event to javascript. My onclick looks like this,</p>
  
  <pre><code>onclick="cancelButtonAction(&lt;c:out value='${loop.index}'/&gt;, &lt;c:out value="${iList.inStr}"/&gt;);"
  </code></pre>
  
  <p>and my cancelButtonAction function is,</p>
  
  <pre><code>function cancelButtonAction(index, inSchLdTsStr){
  document.getElementById('loadDate'+index).value = inSchLdTsStr;    
  }
  </code></pre>
  
  <p>But this wouldnt work. Onclick the event is not getting triggered. Any suggestions?</p>