I have a servlet that is supposed to return a report to a web page, each item in the report is stored in the alist List object.
out.println(alist); // ArraList of String
On the client-side, here is the Javascript code that captures the data from alist:
$.get('DisplayReport',{reportId:reportId},function(responseTest){
    $("#div1").show();
    for(var i = 0; i < responseTest.length; i++)
    {
        $('#row1').append("<td>"+responseTest[i]+"</td>");
    }
});
The problem is that responseTest[i] displays each character instead of each item in the list. Please help.
 
    