SWF-1304 replace code to flush response buffer with request attribute to force JSP include

This commit is contained in:
Rossen Stoyanchev
2010-07-11 23:47:12 +00:00
parent 5de788d396
commit 11e6c3a108

View File

@@ -112,9 +112,7 @@ public class AjaxTilesView extends TilesView {
addRuntimeAttributes(container, flattenedAttributeMap, request, response);
if (fragmentsToRender.length > 1) {
// When rendering more than one fragment, flush the buffer in order to commit the response.
// With the response committed, Tiles does an include rather than forward.
response.flushBuffer();
request.setAttribute(ServletUtil.FORCE_INCLUDE_ATTRIBUTE_NAME, true);
}
for (int i = 0; i < fragmentsToRender.length; i++) {