I have a javascript variable. I'd like to assign the value of it to JSTL variable.
How can I achieve it?
I have a javascript variable. I'd like to assign the value of it to JSTL variable.
How can I achieve it?
This is not possible since JavaScript is run in the client browser and JSTL in the server. Your JavaScript must send the value to a servlet, one way or another.