Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Resetting the buffer

843833Sep 19 2001 — edited Nov 13 2001
Hello.

In my servlet I set the buffer size by calling response.setBufferSize(16*1024);
I use PrintWriter to return html, but if the error occurs I call response.reset() to clear all content and send a error message. But it doesn't work - I get "cannot reset buffer after output has been sent" error. Does it mean I have to use other output stream, not PrintWriter?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2001
Added on Sep 19 2001
4 comments
126 views