I have a function defined inside the script tags of head.(in a JSP) I want to declare a string variable in the JSP and pass it as a parameter to this function
You have to use like this
<% String uname ="multiple"; %>