You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ge...@apache.org on 2005/02/04 15:45:59 UTC
svn commit: r151358 -
struts/tiles/trunk/src/java/org/apache/struts/tiles/commands/TilesPreProcessor.java
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org