poliu2s poliu2s - 1 year ago 54
Scala Question

Is it possible pass in same request parameter multiple times in Play and Scala

Can I pass in the same request parameter multiple times in Play? From the documentation it seems that

returns a map but I'm not sure how it handles duplicate param keys.

For example, to search for photos that have both John and Sarah:


Answer Source

No, you can't, only first occurrence will be taken into account.

Anyway you can for an instance use comma separated list of params like:


and then split() it to the String array by comma character.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download