java - <jsp:forward> or <jsp:include> actions in a JSP needs buffering to be enabled? -
i came across post says that, <jsp:forward>
or <jsp:include>
actions in jsp, needs buffering enabled. can please tell me why that?
the jsp contains <jsp:forward> action
stops processing, clears buffer, , forwards request target resource. note calling jsp should not write response prior action
the include action, on other hand, executes each client request of jsp, means file not parsed included in place. provides capability dynamically change not content want include, output of content. syntax include action <jsp:include page="some-filename" flush="true" />.
note flush attribute must included (in jsp 1.1) force flush of buffer in output stream.
Comments
Post a Comment