click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <sab...@gmail.com>
Subject getOutputStream() has already been called for this response
Date Sat, 13 Mar 2010 04:57:06 GMT
Hi all,

In our applications we often render PDF's to the response's outputStream. Click templates
of the 
other hand uses the response's writer.

If an exception is thrown after response.getOutputStream is called, Click will try and render
the 
ErrorPage using the response.getWriter which leads to the exception:

   getOutputStream() has already been called for this response

Is there an easy way to determine whether its safe to invoke getWriter?

kind regards

bob

Mime
View raw message