Ok so perhaps someone can help me with a problem I\'m trying to solve. Essentially I have a JSP page which gets a list of Country objects (from the method referenceData() fr
The primary problem in your code is that you forgot to put "status.index" inside ${ }.
countries[${status.index}] = new Array();
Now, that said, that would be a pretty bad way to do things because you'd end up with a lot of Javascript code in your page. Much much better to create the list using Javascript object notation as in the second of @John Hartsock's answers.