Hans,
The output of the stream is buffered. You need to rearrange the logic in
your servlet so that the sendDirect() method is called before any of the
page is rendered or headers are sent. You might want to check out the book
Core J2EE Patterns and look into the Front End Controller and Dispatcher
patterns
-Richard
At 02:02 PM 8/28/01 +0100, you wrote:
>Hi,
>
>How do you buffer the response. I.e The response must only be sent to the
>output stream after the request is complete.
>Obviously when I call response.sendRedirect() and out put has already been
>sent it bombs.
>
>Thanks
>Hans
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html