struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: Comments in JSON
Date Wed, 13 Jul 2011 13:08:14 GMT
>> On 7/13/11 5:06 AM, Christian Grobmeier wrote:
>>>
>>> In addition to that I would like to see another content type in the
>>> response then "application/json" if it is in commented mode, like
>>> "text/ext-json".
>>
>> Since there's no "right" answer to what that alternative mime-type should
>> be, I would suggest it be configurable so developers can set it to use
>> whatever response type they want it to have.
>
> Configurable with default value should be sufficient ;-)

+1 to both

For the default value I would just avoid "application" before the
slash, because I have experienced that the file is downloaded then.
This cannot be easily spotted if you have jquery as a frontend.
Anything with "text/" before the slash is acceptable

Cheers!



>
> Kind regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Warszawa JUG conference - Confitura http://confitura.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message