Forums Register Login

flush attribute

+Pie Number of slices to send: Send
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?
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 584 times.
Similar Threads
jsp:include standard action
RequestDispatcher include..
Significance of Flush in <jsp:include ?
The purpose of flush attribute in jsp:include
flush - jsp:include
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:23:07.