Hi condor and thank you for your answer,
Usually, when I send parameters in an ajax request I give the name and the value this way
Code:
params: { param1: value1, param2: value2 }
This is OK when I have a determined number of parameters and when I expect only param1 and param2 on the server side
from the server side I get them in JAVA this way
Code:
String param1 = request.getParameter("param1");
But in my case I would like to send for example this array ["id1;value1", "id2;value2", "id3;value3", ...., "idn;valuen"]
The problem is that I don't know in advance the number of parameters (that is n) which may vary
and the ids (id1, id2, ...) and values (value1, value2, ...) may change from one request to another
So is it possible to send the params this way :
Code:
params: { record: ["id1;value1", "id2;value2", "id3;value3", ...., "idn;valuen"] }
And may be get the array in JAVA with the following method : java.lang.String[] getParameterValues(java.lang.String name)