Hi,
I am using
struts validation framework for validating my fields....I use custom validation class to validation my fields for Number...
when i try to run application it shows following error...
" java.lang.NullPointerException: Depends
string "cNumber" was not found in validator-rules.xml. "
my validation file entry is...
<field property="phoneNumber"
depends="cNumber">
<arg key="form.Number"/>
</field>
and validation rules.xml entry is ...
<validator name="cNumber"
classname="com.myApp.ContactNumberValidator"
method="validateContactNumber"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"
depends=""
msg="errors.contactNumber"/>
I am not getting what is wrong with my code....
Please help me ?
Thanks
Rahul...