This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

flush attribute

 
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
http://www.gulland.com/courses/JavaServerPages/jsp_actions.jsp

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