> @Path("/somepath/{ids}")
> public List<Long> showList(@PathParam("ids") List<Long> ids) {
I never heard of using a PathParam for a list of values. Is this this
supported by Jersey ? what's the default separator ? or does this
return matched values from a regexp ?
Can't you use a 'QueryParam("id") List<Long>' ids instead ?
The URL would look like this then: /somepath?id=1&id=2&id=2
The above seams more HTTP natural for me.
If this is not an option then I guess Naresh solution is the only way to go.
Maybe some recursive regular expression could also do the trick? just a hunch.
--
Adam Walczak
www.adamwalczak.info
+48 604 188 992