title: Validation framework in Struts
body: <p>Error/Exception:</p>
  
  <blockquote>
    <p>ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES  </p>
  </blockquote>
  
  <p>FrameWork: Struts1.2/Validation Framework</p>
  
  <p>Jars Files Used:</p>
  
  <pre><code>commons-validator-1.3.1
  commons-beanutils-1.8.0
  commons-chain-1.2
  commons-digester-1.8
  commons-logging-1.0.4
  </code></pre>
  
  <p>All Inside LIB Folder</p>
  
  <p>Configured in struts-config.xml</p>
  
  <pre><code>&lt;plug-in className="org.apache.struts.validator.ValidatorPlugIn"&gt;     
    &lt;set-property property="pathnames"       
         value="="/WEB-INF/validator_rules.xml,/WEB-INF/validation.xml" /&gt; 
  &lt;/plug-in&gt;
  </code></pre>
  
  <p>Question: Where do I get "validator_rules.xml" file?</p>