I have hard-coded data into a .jsp file. What I want to do is populate a JavaScript array with data sent from the server.
I have tried to send the data from another .jsp page, but I cannot figure out how to convert it into a JavaScript var for me to be able to use it in my page, I also have started using JSON objects, but before I continue I just need some guidance on what the best way to do this would be.
That is: populate a JavaScipt array on a .html or .jsp file from the server. The array will then be used for Google Maps API.
Let me know if you have any questions:
thanks