[ https://issues.apache.org/jira/browse/CXF-6941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15350671#comment-15350671 ]
Sergey Beryozkin edited comment on CXF-6941 at 6/27/16 9:07 AM: ---------------------------------------------------------------- Neal, FYI, I'm not seeing where PHP supports it, apparently it is listed as one of the options, but a replicating the field names is typed as being the best approach. I can also see from the link you posted some people expressing concerns about collapsing the values. The following does not mention this option either: https://en.wikipedia.org/wiki/Query_string (Web Forms) I've asked earlier, do you have some clients in production that basically must do "a=1,2,3" to support a multi-value 'a' ? If you are migrating to JAX-RS and use either JAX-RS 2.0 client or CXF WebClient/proxies, then you'd see a=1&a=2&a=3". was (Author: sergey_beryozkin): Neal, FYI, I'm not seeing where PHP supports it, apparent;y it is listed as one of the options, but a replicating the field names is typed as being the best approach. I can also see from the link you posted some people expressing concerns about collapsing the values. The following does not mention this option either: https://en.wikipedia.org/wiki/Query_string (Web Forms) I've asked earlier, do you have some clients in production that basically must do "a=1,2,3" to support a multi-value 'a' ? If you are migrating to JAX-RS and use either JAX-RS 2.0 client or CXF WebClient/proxies, then you'd see a=1&a=2&a=3". > Send Comma Separated Array in url request > ----------------------------------------- > > Key: CXF-6941 > URL: https://issues.apache.org/jira/browse/CXF-6941 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Affects Versions: 3.1.6 > Environment: Mac > Reporter: Neal Hu > Fix For: 3.2.0, 3.1.8 > > > http://stackoverflow.com/questions/11889997/how-to-send-a-array-in-url-request > Spring MVC and PHP support send comma separated array in the url request: > http://localhost:8080/MovieDB/GetJson?name=Actor1,Actor2,Actor3&startDate=20120101&endDate=20120505 > @RequestMapping(value = "/GetJson", method = RequestMethod.GET) > public void getJson(@RequestParam("name") String[] ticker, > @RequestParam("startDate") String startDate, @RequestParam("endDate") String > endDate) { > //code to get results from db for those params. > } > Now jax-rs only support below: > http://localhost:8080/JerseyPojo/jaxrs/BasicResource/test?nameList=xx&nameList=xxx&nameList=ddd > {code:java} > @Path("/test") > @GET > public String getQueryList(@QueryParam("nameList") List<String> nameList) { > return "name list is: " + nameList.size() + nameList.toString(); > } > {code} > When we migrate from Spring MVC to jax-rs, found problem. > Neal -- This message was sent by Atlassian JIRA (v6.3.4#6332)