【Ajax】代理直接输出JSON或者XML的解决方法

第一个 pring 输出对应的HTTP请求应答头,可以去掉domino自己添加的html标签
json:Print "content-type:text/plain;charset=UTF-8;"
xml:Print "content-type:text/xml;charset=UTF-8;"
eml:Print "content-type:text/eml;charset=UTF-8;"
另外注意domino代理只能输出字符流数据,不能输出字节流数据,如果需返回字节流数据,可以考虑domino自己的Servlet

posted @ 2012-09-22 22:09  hannover  阅读(1296)  评论(1编辑  收藏  举报