I have copied it from struts-1.2.8-bin.zip struts-1.2.8-bin\struts-1.2.8-bin\webapps\WEB-INF
Still the error continues -----Original Message----- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 8:49 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: validator error for struts1.2.8 My 2 cents. Your struts-config for the validator and validation xml looks good. Maybe your validator-rules.xml file is corrupted or does not have all the validation rules definitions. You could try copying the validator-rules.xml file from the struts sample app and using that. Harsh. -----Original Message----- From: Raghuveer [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 10:11 AM To: user@struts.apache.org Subject: validator error for struts1.2.8 I am getting below error when started implementing validaor framework Servlet error: Cannot load a validator resource from '/WEB-INF/validator-rules.xml I'm running Struts Version 1.2.8. I am using ValidatorForm public class CLoginVO extends ValidatorForm{ ------------- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/> </plug-in> ------------- validation.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> <form-validation> <formset> <!-- An example form --> <form name="cLoginForm"> <field property="username" depends="required"> <arg key="cLoginForm.username"/> </field> <field property="password" depends="required,mask"> <arg key="cLoginForm.password"/> <var> <var-name>mask</var-name> <var-value>^[0-9a-zA-Z]*$</var-value> </var> </field> </form> </formset> </form-validation> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]