I know that this already exists, but I just canโt get this working, I have a JSP file with a java variable in it:
String test = "Hello";
And I need to read this value in Javascript embedded in the same JSP file, I tried so many parameters, but it doesnโt work, and for security, I donโt want to pass the value using a URL or hidden values.
Any ideas on how this works?
javascript variables parameter-passing jsp web
Cj1
source share