I have encountered a situation where I have to assign the value of a JavaScript variable into Java variable. Please suggest me a way to do it.
P.S: Assigning value of Java variable into JavaScript is something like this:
< Script>< %
String str = "abcd";
%> var x = <%= a %>; /Script>
I have to do opposite of it.