I am trying to print the java script variable to jsp page like
<script> var v="Javed";</script><% String jspvar="<script>document.writeln(v);</script>";out.println("jspvar=======>>>>>>"+jspvar);
but in the output i am getting "document.writeln(v)". what should i do so get the value of variable . thank you