Author: apetrelli Date: Mon Feb 12 08:06:05 2007 New Revision: 506515 URL: http://svn.apache.org/viewvc?view=rev&rev=506515 Log: Now forwarding to a Tiles definition works.
Modified: struts/struts1/trunk/tiles2/src/main/java/org/apache/struts/tiles2/commands/TilesPreProcessor.java Modified: struts/struts1/trunk/tiles2/src/main/java/org/apache/struts/tiles2/commands/TilesPreProcessor.java URL: http://svn.apache.org/viewvc/struts/struts1/trunk/tiles2/src/main/java/org/apache/struts/tiles2/commands/TilesPreProcessor.java?view=diff&rev=506515&r1=506514&r2=506515 ============================================================================== --- struts/struts1/trunk/tiles2/src/main/java/org/apache/struts/tiles2/commands/TilesPreProcessor.java (original) +++ struts/struts1/trunk/tiles2/src/main/java/org/apache/struts/tiles2/commands/TilesPreProcessor.java Mon Feb 12 08:06:05 2007 @@ -102,11 +102,8 @@ return false; } - boolean retValue = false; - if (container.isValidDefinition(sacontext.getRequest(), sacontext.getResponse(), forwardConfig.getPath())) { - retValue = sacontext.getResponse().isCommitted(); container.render(sacontext.getRequest(), sacontext.getResponse(), forwardConfig.getPath()); } else { @@ -117,6 +114,7 @@ } } - return retValue; + sacontext.setForwardConfig(null); + return false; } }