Pass List to RESTful webservice
Is there a way to pass a list to RESTFul web service method in Jersey? Something like @PathParam("list") List list? Jana I found out that the best way to send a list via POST from the client to a REST service is by using the @FormParam . If you add a parameter twice or more times to the form, it will result into a list on the server's side. Using the @FormParam means on client side you generate a com.sun.jersey.api.representation.Form and add some form parameters like shown below. Then you add the filled form to the post like that: service.path(..) ... .post(X.class, form) (see example code).