Re: [Jersey] _at_DefaultValue with empty string

From: Paul Sandoz <>
Date: Thu, 21 Oct 2010 09:07:23 +0200

Hi Michael,

The only current way i can think of doing this is to write a request
filter that removes all query parameters that have empty values or no
values. Obviously this is an all or nothing approach that does not
understand the semantics of query parameters that can have no value. I
can send more details on that if you wish.


On Oct 20, 2010, at 8:08 PM, Michael Mogley wrote:

> It seems that a parameter passed in with an empty string will not
> trigger substitution of the default value. Is it possible to
> somehow configure Jersey to switch this behavior to perform
> substitution of the default in such cases?
> Michael