title: passing jstl value to javascript
body: <p>Hi I've the following code in jsp. I am trying to pass the value to javascript as follows. But it is not working.The code is as follows:</p>
  
  <pre><code>    &lt;td&gt;&lt;button name = "btn" onclick="callMe(&lt;c:out value='${bus.vehicleId}'/&gt;")&gt;Show Details&lt;/button&gt;&lt;/td&gt;
  </code></pre>
  
  <p>(Vehicle id is printing if I use  in my jsp.) Javascript is like this.</p>
  
  <pre><code>    function callMe(myId) {
          alert(myId);}
  </code></pre>
  
  <p>Here I am getting value as "undefined". I've tried in different way as follows</p>
  
  <pre><code>    &lt;td&gt;&lt;button name = "btn" onclick="callMe('${bus.vehicleId}')&gt;Show tails&lt;/button&gt;&lt;/td&gt;
  </code></pre>
  
  <p>This is also not working.Please help me asap.</p>