title: How to get bean values in jsp scriplets and store in a javascript variable?
body: <pre><code>&lt;bean:write name="&lt;%=(String) currentItr.next()%&gt;" property="&lt;%=(String) currentItr.next()%&gt;"/&gt;
  </code></pre>
  
  <p>The above code prints the values aka : <code>Nicholas...$100000...45....Actor</code></p>
  
  <p>How can i assgin Nicholas to a javascript variable?</p>
  
  <p>I tried </p>
  
  <p><code>var audition = &lt;%=(String) currentItr.next()%&gt;.&lt;%=(String) currentItr.next()%&gt;;</code></p>
  
  <p>and it prints out the column header like so : <code>Name...Salary...Age...Occupation</code></p>
  
  <p>what am i doing wrong?</p>