I know this post is really old, but I have to reply because although BalusC’s answer is marked as correct, it’s not completely correct.
You have to write the query adding “[]” to foo like this:
foo[]=val1&foo[]=val2&foo[]=val3
More Related Contents:
- How to see if an object is an array without using reflection?
- How to find size/length of an array without using library functions/variables [closed]
- java programming homework 2015 [closed]
- Finding the max/min value in an array of primitives using Java
- Can I pass an array as arguments to a method with variable arguments in Java?
- How do you write to a folder on an SD card in Android?
- Convert an array of primitive longs into a List of Longs
- Generic array creation error
- Cannot create an array of LinkedLists in Java…?
- boolean[] vs. BitSet: Which is more efficient?
- Is Java 7 using Tim Sort for the Method Arrays.Sort?
- Error: Generic Array Creation [duplicate]
- How do I remove a specific element from a JSONArray?
- Why is array indexing in Java start with 0?
- Remove duplicates from integer array
- Clone method for Java arrays
- Flatten nested arrays in java
- Java Minimum and Maximum values in Array
- HTTP request compression
- How can I create an array in Kotlin like in Java by just providing a size?
- Getting the length of two-dimensional array
- String to char array Java
- How do I pass a class as a parameter in Java?
- Interview question – Search in sorted array X for index i such that X[i] = i
- Convert byte[] to Base64 string for data URI
- Java Iterate Bits in Byte Array
- How to convert JSONArray to List with Gson?
- In Java, when is the {a,b,c,…} array shorthand inappropriate, and why?
- Array with UserType in Hibernate and PostgreSQL –> MappingException
- Java generics and array initialization