[jjson] r63 committed - set ext-json when returning json in comments

3 views
Skip to first unread message

jj...@googlecode.com

unread,
Jul 12, 2011, 8:45:26 AM7/12/11
to jjso...@googlegroups.com
Revision: 63
Author: grobmeier
Date: Tue Jul 12 05:44:47 2011
Log: set ext-json when returning json in comments
http://code.google.com/p/jjson/source/detail?r=63

Modified:

/trunk/jjson-struts2/src/main/java/de/grobmeier/json/plugins/struts2/JsonResult.java

=======================================
---
/trunk/jjson-struts2/src/main/java/de/grobmeier/json/plugins/struts2/JsonResult.java
Tue Jul 12 02:54:21 2011
+++
/trunk/jjson-struts2/src/main/java/de/grobmeier/json/plugins/struts2/JsonResult.java
Tue Jul 12 05:44:47 2011
@@ -77,8 +77,8 @@
HttpServletResponse response = (HttpServletResponse) invocation
.getInvocationContext().get(HTTP_RESPONSE);

- if (charset != null) {
- response.setContentType("application/json; charset=UTF-8");
+ if (this.commentOutput) {
+ response.setContentType("text/ext-json");
} else {
response.setContentType("application/json");
}

Reply all
Reply to author
Forward
0 new messages