users@jersey.java.net

Re: [Jersey] entities encoding issues in the response

From: Arul Dhesiaseelan <arul_at_fluxcorp.com>
Date: Tue, 27 May 2008 09:12:19 -0600

Paul,

Thanks for fixing this.

I appreciate your continued support in helping me out. It is hard to see
this kind of support in any other similar forums.
Kudos to the great support from Team Jersey.

Regards,
Arul


Paul Sandoz wrote:
> Attached is a working version (as a NB project).
>
> The problem is your message body writer was registered for the
> incorrect type, it should be Rows type rather than the CellType.
>
> Your @GET method of the resource returns a Response instance that
> contains an instance of Rows.
>
> Paul.
>
> Arul Dhesiaseelan wrote:
>> Hi Paul,
>>
>> Attaching the sources for your reference. It also includes a client
>> which sets the header to "application/xml". But, it does not fix it
>> either.
>> The resource method is getting invoked. But, I always get the same
>> response as XML.
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <rows>
>> <row>
>> <cell>&lt;div class=&quot;progressOuterRow&quot;&gt;&lt;div
>> class=&quot;progressInnerRow&quot; style=&quot;width:
>> 25.0px;&quot;&gt;&lt;/div&gt;&lt;div
>> class=&quot;progressText&quot;&gt;25/100
>> MB&lt;/div&gt;&lt;/div&gt;</cell>
>> </row>
>> </rows>
>>
>> Thanks!
>> Arul
>>
>> Paul Sandoz wrote:
>>> Arul Dhesiaseelan wrote:
>>>> I am using 0.7.
>>>>
>>>> Does this version have include this behavior?
>>>>
>>>