• Post Reply Bookmark Topic Watch Topic
  • New Topic

flush attribute  RSS feed

Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1) why flush attribute is used with <jsp:include> and sendRedirect()? explain with simple steps
Q2) what care must take using the flush attribute with these?

I am very confuse with flush attribute. This text is from

The flush attribute controls whether any current output is flushed (sent to browser) prior to including the content from the include file. However the JSP 1.1 specificaton is currently limited to only allow true values. This is a limitation that may be relaxed in future specifications.

Important. The fact that we must flush the output buffer limits what we can do with the <jsp:include/> action. In particular, using response.sendRedirect() to another page is no longer possible. Likewise, setting cookies or HTTP Headers will not succeed. This applies to both the files involved: the including file and the file that is included.

Please explain what above text says regarding flush attribute?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!