struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <>
Subject Re: Comments in JSON
Date Tue, 12 Jul 2011 11:44:20 GMT
> Thanks for all the comments and links, now I've got better overview
> what's the real issue here. My idea was the same, to add some flag to
> enable / disable comments in the output with default to true.

I could not find the place but as this is not standard json the
content type of the response header should not be "application/json".
It should be something else like "application/struts-json" or similar.
As I found out with a custom content type tools like jQuery might be
able to add a Converter which is able to correct the invalid string:

At the moment the default is application/json which is wrong, when the
enable comments option is true by default:

I have added a similar feature to my own struts json plugin and
therefore I will implement such a converter. I will post the result
(if i manage :-)) later


> I'm going to implement it till weekend, if not, Dale you're welcome to
> do this as I'm going for short vacation.
> Regards
> --
> Łukasz
> + 48 606 323 122
> Warszawa JUG conference - Confitura
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message