Fix a problem where Tiles cannot be used from global exception handlers unless the TilesPreProcessor command is also included in the exception chain.
git-svn-id: https://svn.apache.org/repos/asf/struts/sandbox/branches/STRUTS_1_2_BRANCH@164400 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/struts-chain/src/conf/chain-config.xml b/struts-chain/src/conf/chain-config.xml
index 8ba4635..cdfbf8a 100644
--- a/struts-chain/src/conf/chain-config.xml
+++ b/struts-chain/src/conf/chain-config.xml
@@ -208,8 +208,9 @@
<!--
- If you want to use Tiles, uncomment this command, and modify your
- Struts Configuration to use this PlugIn:
+ If you want to use Tiles, uncomment this command, and the one in the
+ 'servlet-exception' chain below, and modify your Struts Configuration
+ to use this PlugIn:
"org.apache.struts.chain.legacy.TilesPlugin"
This PlugIn is required because the basic TilesPlugIn tests at initialization
@@ -249,6 +250,15 @@
<command
className="org.apache.struts.chain.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
className="org.apache.struts.chain.servlet.PerformForward"/>