Hi !
I'm trying to figure out how to completely disable response buffering from the
JSP page. To my understanding there're 2 levels of buffering in JSP: one buffer
sits inside JspWriter object (it's size is controlled by the buffer=".."
property of the page tag), and another one is inside the ServletResponse object.
The latter does provide a method to set the buffer size (setBufferSize(int)),
however:
1. If i set buffer="none" in page tag, then by the time i get to the very first
scripting section of my page something (i assume some headers) has been already
written to the ServletResponse buffer, because the JspWriter object has no
buffers. So i get the IllegalStateException with the following description:
"setting buffer after writing to the writer". Note that the response object is
not available during jspInit() call, because it hasn't been yet created.
2. On the other hand if i set buffer="???kb" then of course i have no problem
modifying the ServletResponse buffer size right at the begining, however then
there is no way to modify JspWriter's buffer size ... i'm back to square one.
On the same note: how do i set up unlimited buffering ? JspWriter has an
UNBOUNDED_BUFFER constant, but like i previously said i couldn't find a way to
modify the buffer size directly.
Thank you very much for all your help and time !!!!
Best Regards,
Anton
~v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^vv^v^v^v^v^v^v^v^v^v^v^~
Anton Belov
Sun Microsystems Americas Customer Engineering
[EMAIL PROTECTED]
Ph. (905)415-2841 Fax. (905)477-0217
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets