I know there is already questions about that, but I just can´t simply get this work, I have a JSP file with a java variable in it:
String test = \"Hello\";
The best way to do it is to use something like following in your javascript code;
var myvar = '${jspvar}';