I have a RestEASY service where a resource method takes a form parameter. The 
type of the parameter in Java is a String array. When using the generated 
Javascript AJAX client code and putting an array into the parameter map, the 
items of the array are concatenated with comma and sent in a single parameter.

Sample Java code:

public class SomeClass {
public void someMethod(@FormParam("key") String[] values) {...}

Sample Javascript code:


Sample HTTP request:

Request entity is "key=val1,val2,val3"

Is this intended behaviour or should the client code send multiple parameters 
with the same name, one for each array value? Is this worth a bug report or 
feature request in the RestEASY Jira?

Best regards,
Michael Descher

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Resteasy-users mailing list

Reply via email to