var typearray = new Array();
then, I need to set a hidden field in the html to this value. I tried:
document.sortForm.typearray.value = typearray;
document.sortForm.typearray.value = typearray.toString();
but when I display the value it shows as [object] and when I try to use it in my servlet the value is garbage.
How do I pass this array as a string by using hidden fields in my html?