I am trying to get familiar with javaScript and currently stumbled upon one issue:
How to get ArrayList JSP variables in JavaScript function?
Fo example I figured out how I can get an int value, but dont know how to move the array list
var total='<%=counter%>'; //convert jsp to JavaScript
There is no direct way to convert an ArrayList to javascript array, you can loop through the ArrayList and add each element to javascript array. try this
javascript: