title: Can not pass jsp value to javascript
body: <p>I am working on a <code>jsp</code> application. I have a bean user. In <code>javascript</code> I have the user id.
  I want to send it to <code>javascript</code>. With the getter method of id - <code>getId()</code> I have tried the
  following thing but it not working - </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var userId = '&lt;% getId()%&gt;';
      alert("User Id is: " + userId);
  &lt;/script&gt;
  </code></pre>
  
  <p>Am I doing something wrong? Can any one help me.</p>
  
  <p>Thanks</p>