click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <>
Subject Re: getOutputStream() has already been called for this response
Date Sat, 13 Mar 2010 07:44:08 GMT
Hi Henry,

On 13/03/2010 06:25 PM, Henry Saputra wrote:

> , OR fallback to use ServletOutputStream if IllegalStateException is
> triggered during call to getWriter:
>               new OutputStreamWriter(response.getOutputStream(),
> response().getCharacterEncoding());

Agreed, a try/catch block which wraps the outputStream in a writer should work well.

I'll try and come up with a patch for VelocityTemplateService and FreemarkerTemplateService.

kind regards


View raw message