views:

64

answers:

1

How can i send an Array with a HTTP Get request?

I'm Using GWT client to send the request.

+6  A: 

Send them as multiple parameters with the same name.

Basically, for this array example:

String[] foo = { "val1", "val2", "val3" };

the query string should end up to look like:

foo=val1&foo=val2&foo=val3
BalusC
Now the problem is to receive it.String[] docList = request.getParameterValues("foo");but receive only the first
Erick
Maybe something went wrong with populating and sending it. For debugging, use `request.getQueryString()` to get the entire query string. If in vain, ask a new question with more detail.
BalusC