mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-1724
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user