title: how to print javascript variable to JSP Method
body: <p>I am trying to print the java script variable to jsp page like</p>
  
  <pre><code>&lt;script&gt; var v="Javed";&lt;/script&gt;&lt;% String jspvar="&lt;script&gt;document.writeln(v);&lt;/script&gt;";out.println("jspvar=======&gt;&gt;&gt;&gt;&gt;&gt;"+jspvar); 
  </code></pre>
  
  <p>but in the output i am getting  "document.writeln(v)". what should i do so get the value of variable .
  thank you</p>