Author: martinc
Date: Sat Apr 23 09:26:38 2005
New Revision: 164399
URL: http://svn.apache.org/viewcvs?rev=164399&view=rev
Log:
Fix a problem where Tiles cannot be used from global exception handlers unless
the TilesPreProcessor command is also included in the exception chain.
Modified:
struts/core/trunk/conf/share/chain-config.xml
Modified: struts/core/trunk/conf/share/chain-config.xml
URL:
http://svn.apache.org/viewcvs/struts/core/trunk/conf/share/chain-config.xml?rev=164399&r1=164398&r2=164399&view=diff
==============================================================================
--- struts/core/trunk/conf/share/chain-config.xml (original)
+++ struts/core/trunk/conf/share/chain-config.xml Sat Apr 23 09:26:38 2005
@@ -201,8 +201,9 @@
className="org.apache.struts.chain.commands.ExecuteForwardCommand"/>
<!--
- If you want to use Tiles, uncomment this command and make sure you have
- the struts-tiles JAR included in your web application.
+ If you want to use Tiles, uncomment this command, and the one in the
+ 'servlet-exception' chain below, and make sure you have the
+ struts-tiles JAR included in your web application.
<command
className="org.apache.struts.tiles.commands.TilesPreProcessor"/>
@@ -233,6 +234,15 @@
<!-- Execute the configured exception handler (if any) -->
<command
className="org.apache.struts.chain.commands.servlet.ExceptionHandler"/>
+
+ <!--
+ If you want to use Tiles, uncomment this command, and the one in the
+ 'servlet-standard' chain below. This one is needed to allow Tiles to
+ be used from global exception handlers.
+
+ <command
+ className="org.apache.struts.chain.servlet.TilesPreProcessor"/>
+ -->
<!-- Follow the returned ForwardConfig (if any) -->
<command
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]