I am using JQuery's post(), but my servlet doesn't see the array that I'm passing as a parameter.
My javascript looks like this:
var myArray = ['1', '2'];
$.post('action.do', {"arrayData":myArray, "mode":"insert"});
In my servlet:
System.out.println(request.getParameterMap());
which outputs:
{mode=insert}
I've also tried
$.post('action.do', {"arrayData[]":myArray, "mode":"insert"});
and
$.post('action.do', {"arrayData":$(myArray).serializeArray(), "mode":"insert"});