I have a servlet that needs a call like http://localhost:8080?a=1&a=3&a=2&b=5. The thing is it has multiple params with the same name like 'a' here. How can I generate such a servlet query. I used this for distinct param names.
$.ajax({
url: 'http://localhost:8080',
data: {a: 1, b: 2, c: 3},
success: function(response) {
}
});
But what can I do when the param names are not distinct? I need the outgoing GET to look like shown above and not in some serialized format for it to be compatible with the servlet (which I cant modify)
Thank you for you help