The request context for Struts 2 - Tiles 2 integration tries to dispatch the request if possible.
It includes it only if the response has been committed, or if it is a FreeMarker request (this must be fixed).

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@504948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Antonio Petrelli
2007-02-08 16:40:27 +00:00
parent 02249e0558
commit 522961d993
@@ -80,7 +80,12 @@ public class StrutsTilesRequestContext extends TilesRequestContextWrapper {
}
public void dispatch(String include) throws IOException {
include(include);
if (include.endsWith(mask)) {
// FIXME This way FreeMarker results still don't have a content-type!
include(include);
} else {
super.dispatch(include);
}
}
/**