
how to get javascript variable value into java variable?? i have one value in javascript variable(var name = value ) i want this name variable value in java variable (string name1)

Hi friend
Use the following code :
<script> var jsvar="Hello World"; </script>
<%@ page language="java" %>
<%
String jspvar="<script>document.writeln(jsvar)</script>"; out.println("jspvar="+jspvar);
%>
The document.writeln() method appends the comma-separated argument(s) (value) to the document as a string.
Also the document.writeln() method appends a newline character to the document.