On 01/07/2014 02:18 PM, Valdis Vītoliņš wrote:
> 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?

out.close()
xcontext.setFinished(true)

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to