title: JSF 1.2: Navigation rules in a different config file
body: <p>I am using JSF 1.2 for my application. I am trying to create a separate config file (named: <strong>navigation-config.xml</strong>) for all the navigation rules throughout my application. Below are the steps I followed for the same:</p>
  
  <p>Made an entry in the <code>web.xml</code> file and placed it same directory where the <code>faces-config.xml</code> is present:</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;javax.faces.application.CONFIG_FILES&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/faces-config.xml,/WEB-INF/navigation-config.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>Below is the content of <code>navigation-config.xml</code> :</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  
  &lt;!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"&gt;
  
  &lt;faces-config&gt;
  
  &lt;navigation-rule&gt;
      &lt;description&gt;Welcome Screen Navigation&lt;/description&gt;
      &lt;from-view-id&gt;/login.jspx&lt;/from-view-id&gt;
      &lt;navigation-case&gt;
          &lt;from-outcome&gt;success&lt;/from-outcome&gt;
          &lt;to-view-id&gt;/welcome.jspx&lt;/to-view-id&gt;
      &lt;/navigation-case&gt;      
  &lt;/navigation-rule&gt;
  
  &lt;/faces-config&gt;
  </code></pre>
  
  <p>When <code>success</code>, the navigation is not happening. If I remove the <code>&lt;navigation-rule&gt;</code> from the <code>navigation-config.xml</code> and add it to my <code>faces-config.xml</code> file then the navigation is working perfectly which means there are problems with the <code>navigation-config.xml</code> file navigation is having problems.</p>
  
  <p>Please let me know how to resolve this, I need a separate file indicating all the navigation rules.</p>