title: Assigning Java variable value to Javascript variable
body: <p>How to assign a java variable vale to an javascript varible. I have tried the following scripting elements:</p>
  
  <pre><code>&lt;%
  double x=23.35;
  %&gt;
  var temp='&lt;%= x %&gt;';
  var temp="&lt;%= x %&gt;";
  var temp='${x}';
  </code></pre>
  
  <p>they returned an output as follows:</p>
  
  <pre><code>&lt;%= x %&gt;
  &lt;%= x %&gt;
  ${x}
  </code></pre>