
how to assign javascript variable value to a jsp variable

<script>
var v="Roseindia";
</script>
<% String st="<script>document.writeln(v)</script>";
out.println("value="+st);
%>

this does not work, i get the same sentence printed it shows me as -> value= Please let me know if there is any other way.

it gets printed as value=
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.