> From: Anthony Brew [mailto:atb...@gmail.com]
> Subject: Re: CGIServlet followed by a Filter that modifies the response
> 
> > Unfortunately I am coming across the following:
> >
> > java.lang.IllegalStateException: getWriter() has already 
> > been called for this response

Since the CGI servlet uses Response.getOutputStream(), your filter will have to 
do the same to avoid the exception.  A given response can only use one or the 
other during its lifetime, as documented in the servlet spec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to