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?
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?