From db2bf7b4e3817d64f4f1f689178bd607a043d325 Mon Sep 17 00:00:00 2001 From: Ted Nathan Husted Date: Tue, 13 Mar 2007 03:12:20 +0000 Subject: [PATCH] WW-1526 "Error with handling static resources under WebSphere 6". Flush output after copy to appease WebLogic and possibly other containers. Submitted by Adam Czysciak. git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@517504 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/struts2/dispatcher/FilterDispatcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/struts2/dispatcher/FilterDispatcher.java b/core/src/main/java/org/apache/struts2/dispatcher/FilterDispatcher.java index e14c12354..f6bd2258c 100644 --- a/core/src/main/java/org/apache/struts2/dispatcher/FilterDispatcher.java +++ b/core/src/main/java/org/apache/struts2/dispatcher/FilterDispatcher.java @@ -123,7 +123,7 @@ import com.opensymphony.xwork2.ActionContext; *
  • actionPackages - a comma-delimited list of Java packages to scan for Actions.
  • * *
  • configProviders - a comma-delimited list of Java classes that implement the - * {@link ConfigurationProvider} interface that should be used for building the {@link Configuration}.
  • + * {@link com.opensymphony.xwork2.config.ConfigurationProvider} interface that should be used for building the {@link com.opensymphony.xwork2.config.Configuration}. * *
  • * - any other parameters are treated as framework constants.
  • * @@ -537,6 +537,7 @@ public class FilterDispatcher implements StrutsStatics, Filter { while (-1 != (n = input.read(buffer))) { output.write(buffer, 0, n); } + output.flush(); // WW-1526 } /**