My jsp code and js code are within the same jsp file. I want to send two array to js part. Here is my jsp array:
String[] node = call.getAll(results_list[i * 18 + 1]);
int[] edge = call.getAllTable2();
Some websites said that I have to receive array at js part like below:
var node1 = <%=node%>;
var edge1 = <%=edge%>;
But this method could not work. It could only work well on string or int. Is there other method to pass my array?