Following Steps are required to setup validator framework in Struts: –
In WEB-INF directory place valdator-rules.xml and validation.xml files.
Enable validation plugin in struts-config.xml files by adding following:
[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>
[/xml]