Hi,
When I submit a form in HTML, I can pass a parameter multiple times, e.g.
<input type="hidden" name="id" value="2">
<input type="hidden" name="id" value="4">
Then in struts I can have a bean with property String[] id, and it'll populate the array correctly.
My question is, how can I do that in Javascript? When I have an array, and I set form.id.value = myArray, it just sets the value to a comma-separated list. So then on the Struts end, I just get one-element array, i.e. the String "2,4".
I should add, I need to submit this in a form, so I can't just generate a GET request, e.g. id=2&id=4.