You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Feder, Helen" <hf...@befree.com> on 2003/03/20 16:01:55 UTC

Struts 1.1 validator & modules -- answer to problem where getting " Resources not defined for Validator"

When trying to use the validator with modules I was getting the error:
"ERROR [ValidatorForm] Resources not defined for Validator "

The solution to this problem was to put the plug-in info into the module's
struts-config file
That is this xml --> 
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
   <set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
  
(it has to be in the main struts-config.xml as well as the module's
struts-config.xml)