I've seen many example tag classes that have pageContext.getOut().flush();, wrapped in a try/catch, as the first line of doEndTag().
1. What is the purpose of that?
2. From the docs at
JspWriter.flush() it seems that this call would forward the flush onto the Response. Would this disallow a tag error from redirecting the user to the error page? (Response.flushBuffer() commits the status and headers, disallowing future redirects in the page, right?)
3. What bad things happen if you don't flush it?
If there is a good explanation of any of this, I'd love to be pointed to some good docs.
Thanks!
[ May 12, 2004: Message edited by: scott p laplante ]