I have a list of strings on my server which I am trying to get to the client in the form of an array. The code I am attempting to use is the following:
Within the js
Try using JSON (Javascript object notation) it'd be quite simple to encode the array and decode it on javascript
check it out here
http://www.json.org/java/index.html