Author: wsmoak
Date: Tue Sep 26 22:13:15 2006
New Revision: 450317
URL: http://svn.apache.org/viewvc?view=rev&rev=450317
Log:
Add a FAQ on loading chain config files.
STR-2951
Modified:
struts/struts1/trunk/src/site/fml/faqs/newbie.fml
Modified: struts/struts1/trunk/src/site/fml/faqs/newbie.fml
URL:
http://svn.apache.org/viewvc/struts/struts1/trunk/src/site/fml/faqs/newbie.fml?view=diff&rev=450317&r1=450316&r2=450317
==============================================================================
--- struts/struts1/trunk/src/site/fml/faqs/newbie.fml (original)
+++ struts/struts1/trunk/src/site/fml/faqs/newbie.fml Tue Sep 26 22:13:15 2006
@@ -19,6 +19,40 @@
<faqs title="Newbie FAQ">
<part id="general">
+ <faq id="chain">
+ <question>How do I load a custom chain config file?</question>
+ <answer>
+
+ <p>Use the <code>chainConfig</code> init param for
+ ActionServlet to specify a comma delimited list of
+ chain config files.
+ </p>
+
+ <p>This will override the default value of
+ <code>chainConfig</code>, so unless you are
+ overriding the default request processing chain, you
+ must include the default chain config file in the list.
+ </p>
+
+ <pre>
+ <init-param>
+ <param-name>chainConfig</param-name>
+ <param-value>
+ org/apache/struts/chain/chain-config.xml,
+ /WEB-INF/custom-chain-config.xml
+ </param-value>
+ </init-param>
+ </pre>
+
+ <p>For another method of loading chain config files, see
+ <a
href="http://jakarta.apache.org/commons/chain/cookbook.html#Load_a_Catalog_From_a_Web_Application">
+ Load a Catalog From a Web Application</a>
+ in the Commons Chain Cookbook.
+ </p>
+ </answer>
+
+ </faq>
+
<faq id="modules">
<question>What is a modular application? What does module-relative
mean?</question>
<answer>