How to set the JSTL variable value in java script?
This variable can be set using value="${val1}" inside c:set if you have used jquery in your system.
value="${val1}"
c:set