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!

jsp:include: why use "flush=true" ?

843838Aug 7 2005 — edited Jun 8 2007
When using "jsp:include", tutorials often recommend flushing:
<jsp:include page="myPage.jsp" flush="true" />
The documentation says this would flush the response buffer before starting to write the included page.

But why is this important ?
If you don't flush, isn't it true that the included page will keep writing into the current buffer, and flush it when it's full ? What's wrong with that ? That even sounds more efficient....

Thanks :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2007
Added on Aug 7 2005
5 comments
5,418 views