Hi All,
I was reading the jsp specs, and came across the <jsp:include> & this is what it says about flush,
The flush attribute controls flushing. If true, then, if the page output is buffered
and the flush attribute is given a true value, then the buffer is flushed prior to the
inclusion, otherwise the buffer is not flushed. The default value for the flush
attribute is false.
I did not quite understand this.
Consider the following 4 different cases,
case1.jsp.
<%@ page language='java' autoflush='true' %>
-- --
jsp code
-- --
<jsp:include page='blah.jsp' flush='false' />
case2.jsp.
<%@ page language='java' autoflush='true' %>
-- --
jsp code
-- --
<jsp:include page='blah.jsp' flush='true' />
case3.jsp
<%@ page language='java' autoflush='false' %>
-- --
jsp code
-- --
<jsp:include page='blah.jsp' flush='true' />
case4.jsp
<%@ page language='java' autoflush='false' %>
-- --
jsp code
-- --
<jsp:include page='blah.jsp' flush='false' />
Can anyone please give me the answer to what will happen in each case.
Thanks in advance.
yogen