7 Jan
2014
7 Jan
'14
7:18 p.m.
Due to performance reasons I had to improve Groovy script to print results directly to the response object: {{groovy}} response.setContentType('application/xml'); response.setCharacterEncoding("UTF-8"); def out=response.getWriter(); try { ... out.println('<?xml version="1.0" encoding="UTF-8"?>'); out.println('<certificates>'); ... But now problem is that after that I got additional XWiki HTML even using ?outputSyntax=plain parameter. I suspect, I need to end/close response somehow programmatically. Any hints? Thanks in advance