Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1
Hello Dera All, I am resending this request as I could not ascertain whether it is delivered to user group or not -Udaya Dear All, Validation requiredif worked fine in my project when using Struts 1.1 RC1 I upgraded or using now struts 1.1. suddenly the requiredif validation is not working. So much of my validation stopped working. The error is as follows. Please help me. Thank you very much in advance. Caused by: java.lang.NullPointerException at org.apache.struts.validator.FieldChecks.validateRequiredIf(FieldChecks.java:200) ... 43 more 12:01:23,995 ERROR [Validator] reflection: null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:435) at org.apache.commons.validator.Validator.validateField(Validator.java:512) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1
The format of the variable names changed before Struts 1.1 final. In your validator, try replacing your var-names field-test[0] and field-value[0] with fieldTest[0] and fieldTest[0], respectively. You can see this format in the example at http://jakarta.apache.org/struts/userGuide/dev_validator.html -Greg Ludington - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1
Thank you very much, Greg Ludington That must be the reason of failure. But can you advise me whether the validator dtd will be automatically upgraded/comes with Struts1.1 final or I have to change/configure it or not necessary to bother about it i.e there is no relation to it. Please clarify. Thank you very much -Udaya Allu -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Sunday, August 17, 2003 11:25 AM To: Udaya Allu; [EMAIL PROTECTED] Subject: RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1 The format of the variable names changed before Struts 1.1 final. In your validator, try replacing your var-names field-test[0] and field-value[0] with fieldTest[0] and fieldTest[0], respectively. You can see this format in the example at http://jakarta.apache.org/struts/userGuide/dev_validator.html -Greg Ludington - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]