Author: germuska
Date: Fri Feb  4 06:45:56 2005
New Revision: 151358

URL: http://svn.apache.org/viewcvs?view=rev&rev=151358
Log:
do an include (instead of forward) in the case where the response is already 
committed.
Thanks to Wolfgang Gehner for the suggestion.

Modified:
    
struts/tiles/trunk/src/java/org/apache/struts/tiles/commands/TilesPreProcessor.java

Modified: 
struts/tiles/trunk/src/java/org/apache/struts/tiles/commands/TilesPreProcessor.java
URL: 
http://svn.apache.org/viewcvs/struts/tiles/trunk/src/java/org/apache/struts/tiles/commands/TilesPreProcessor.java?view=diff&r1=151357&r2=151358
==============================================================================
--- 
struts/tiles/trunk/src/java/org/apache/struts/tiles/commands/TilesPreProcessor.java
 (original)
+++ 
struts/tiles/trunk/src/java/org/apache/struts/tiles/commands/TilesPreProcessor.java
 Fri Feb  4 06:45:56 2005
@@ -188,9 +188,9 @@
         ComponentContext tileContext = null;
 
         // Get current tile context if any.
-        // If context exists, we will do an include
+        // If context exists, or if the response has already been committed we 
will do an include
         tileContext = ComponentContext.getContext(swcontext.getRequest());
-        doInclude = (tileContext != null);
+        doInclude = (tileContext != null || 
swcontext.getResponse().isCommitted());
 
         // Controller associated to a definition, if any
         Controller controller = null;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to