cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ari King <ari.brandeis.k...@gmail.com>
Subject Re: Deserializing Encoded Query String
Date Wed, 07 Mar 2012 03:07:47 GMT
>> I've configured a method to receive query string parameters (see
>> below), but it does NOT receive all sent parameters.
>>
>> public Response lookup (@QueryParam("") CriteriaDto criteria) { ... }
>>
>> Seemingly encoded parameters are NOT populated in the DTO. For example,
>> given --
>>
>> Raw query string: ?locations[]=10001&name=ari
>>
>> Encoded query string: ?locations%5B%5D=10001&name=ari
>>
>>  The "locations[]" parameter is ignored, whereas "name" is populated
>> in the CriteriaDto.
>>
> ? locations=10001
>
> should do, even if it's an array property on CriteriaDto
>
> Cheers, Sergey

Changing from locations[]=10001 to locations=10001 worked.

But is there a way to make locations[]=10001 work? Thanks.

Best,
Ari

Mime
View raw message