Author: martinc Date: Sat Apr 23 09:27:13 2005 New Revision: 164400 URL: http://svn.apache.org/viewcvs?rev=164400&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/sandbox/branches/STRUTS_1_2_BRANCH/struts-chain/src/conf/chain-config.xml Modified: struts/sandbox/branches/STRUTS_1_2_BRANCH/struts-chain/src/conf/chain-config.xml URL: http://svn.apache.org/viewcvs/struts/sandbox/branches/STRUTS_1_2_BRANCH/struts-chain/src/conf/chain-config.xml?rev=164400&r1=164399&r2=164400&view=diff ============================================================================== --- struts/sandbox/branches/STRUTS_1_2_BRANCH/struts-chain/src/conf/chain-config.xml (original) +++ struts/sandbox/branches/STRUTS_1_2_BRANCH/struts-chain/src/conf/chain-config.xml Sat Apr 23 09:27:13 2005 @@ -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 @@ -248,6 +249,15 @@ <!-- Execute the configured exception handler (if any) --> <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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]