I have a Java class Controller.java. In the controller I can retrieve to MySQL database and keep the user informations into a list by List<User> users = userDAO.findAllUsers();
There is no problem so far.
To check, I can retrieve users from index.jsp by 
<c:forEach var="user" items="${users}"> <li>${user.id}</li> </c:forEach>
I also have a myScripts.js file. I wrote scripts into it and I imported the file by 
<script src="myScript.js"></script>.
There is still no problem so far.
I want to sketch a HighCharts line chart by using user list.
It means, I have to retrieve a Java variable from a JavaScript function.
How can I do this? Thanks a lot.
 
     
     
     
     
     
     
     
    